Rafael Baldiati Parizi
2011-Nov-22 19:18 UTC
[LLVMdev] LLVM native code and GDB -> Segmentation Fault
Hi, I have a problem with the generation of native code. I'm wanting to run a native code with GDB. When I run the program with "*lli program.bc* -> OK, but if I do *"llc program.bc -o program.s* " and then "*gcc -g program.s -o program.native*" results in an error when running under GDB. Error = Segmentation fault. How can I solve this problem? Bye -- *Rafael Parizi* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111122/38767d92/attachment.html>
Duncan Sands
2011-Nov-22 20:16 UTC
[LLVMdev] LLVM native code and GDB -> Segmentation Fault
Hi Rafael, is it your program that dies with a segfault, or is it gdb that dies? Ciao, Duncan.> I have a problem with the generation of native code. > I'm wanting to run a native code with GDB. > When I run the program with "/lli program.bc/ -> OK, > but if I do /"llc program.bc -o program.s/ " and then "/gcc -g program.s -o > program.native/" results in an error when running under GDB. > > Error = Segmentation fault. > > How can I solve this problem? > > Bye > > -- > */Rafael Parizi/* > > > > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Rafael Baldiati Parizi
2011-Nov-22 20:30 UTC
[LLVMdev] LLVM native code and GDB -> Segmentation Fault
Hi Duncan, it is my program that dies. Moreover, if I run ./program.native, it works. You are missing something? 2011/11/22 Duncan Sands <baldrick at free.fr>> Hi Rafael, is it your program that dies with a segfault, or is it gdb that > dies? > > Ciao, Duncan. > > > I have a problem with the generation of native code. > > I'm wanting to run a native code with GDB. > > When I run the program with "/lli program.bc/ -> OK, > > but if I do /"llc program.bc -o program.s/ " and then "/gcc -g program.s > -o > > program.native/" results in an error when running under GDB. > > > > Error = Segmentation fault. > > > > How can I solve this problem? > > > > Bye > > > > -- > > */Rafael Parizi/* > > > > > > > > > > > > _______________________________________________ > > LLVM Developers mailing list > > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-- *Rafael Parizi* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111122/9b0fd0c4/attachment.html>
Maybe Matching Threads
- [LLVMdev] LLVM native code and GDB -> Segmentation Fault
- [LLVMdev] LLVM native code and GDB -> Segmentation Fault
- [LLVMdev] LLVM native code and GDB -> Segmentation Fault
- [LLVMdev] LLVM native code and GDB -> Segmentation Fault
- [LLVMdev] Fwd: LLVM IR Branchs