Displaying 4 results from an estimated 4 matches for "jalbert".
Did you mean:
albert
2009 Sep 16
2
[LLVMdev] llc and debug information
...-c -emit-llvm test.cpp
> llc -O0 test.o
> g++ test.o.s
> ./a.out
My return address is 0x400bb2
> addr2line 0x400bb2
??:0
Also to further implicate llc, this works:
> llvm-g++ -g -O0 -S test.cpp
> g++ test.s
> ./a.out
My return address is 0x400bf9
> addr2line 0x400bf9
/home/jalbert/llvmtest//test.cpp:13
Anymore thoughts?
-Nick
On Wed, Sep 16, 2009 at 2:29 PM, Devang Patel <devang.patel at gmail.com>wrote:
> On Wed, Sep 16, 2009 at 1:34 PM, Nick Jalbert <jalbert at eecs.berkeley.edu>
> wrote:
> > Hi all,
> > I'm having an issue with debug...
2009 Sep 16
3
[LLVMdev] llc and debug information
Hi all,
I'm having an issue with debug information and llc. A test program:
#include <iostream>
using namespace std;
void foo() {
cout << "My return address is " << __builtin_return_address(0) <<
endl << flush;
}
int main(int argc, char *argv[]) {
foo();
return 0;
}
When I compile my test program to LLVM bytecode, and then use
2009 Sep 16
0
[LLVMdev] llc and debug information
On Wed, Sep 16, 2009 at 1:34 PM, Nick Jalbert <jalbert at eecs.berkeley.edu> wrote:
> Hi all,
> I'm having an issue with debug information and llc. A test program:
> #include <iostream>
> using namespace std;
> void foo() {
> cout << "My return address is " << __builtin_return_addres...
2009 Sep 17
0
[LLVMdev] llc and debug information
Nick Jalbert wrote:
> Thanks for the quick responses, but unfortunately still no luck:
>
> > llvm-g++ -g -O0 -c -emit-llvm test.cpp
> > llc -O0 test.o
> > g++ test.o.s
> > ./a.out
> My return address is 0x400bb2
> > addr2line 0x400bb2
> ??:0
>
> Also to fu...