[LLVMdev] Debugging with llvm-gcc/mingw doesn't seem to work
akyrtzi at gmail.com
Mon Jun 16 14:40:50 PDT 2008
Thanks a lot Anton.
I installed gdb 6.8 and it works fine on linux.
Unfortunately, the mingw one is problematic (I use gdb 6.8 on mingw too).
Anton Korobeynikov wrote:
> Hello, Argiris
>> Can you please try out the steps I mentioned before with the linux
>> binaries ? I just want to make sure that there's not something wrong
>> with my setup.
> Here they are:
> $ cat dbg.c
> int main()
> return 0;
> $ gdb a.out
> GNU gdb 6.8
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show
> and "show warranty" for details.
> This GDB was configured as "i686-pc-linux-gnu"...
> (gdb) break dbg.c:3
> Breakpoint 1 at 0x80483a6: file dbg.c, line 3.
> (gdb) r
> Starting program: /home/asl/proj/llvm/llvm-gcc-4.2/install/bin/a.out
> Failed to read a valid object file image from memory.
> Breakpoint 1, main () at dbg.c:3
> 3 return 0;
> (gdb) info source
> Current source file is dbg.c
> Compilation directory is /home/asl/proj/llvm/llvm-gcc-4.2/install/bin/
> Located in /home/asl/proj/llvm/llvm-gcc-4.2/install/bin/dbg.c
> Contains 4 lines.
> Source language is c.
> Compiled with DWARF 2 debugging format.
> Does not include preprocessor macro info.
> $ uname -a
> Linux aslstation 2.6.22-gentoo-r5 #3 SMP Tue Aug 28 22:47:26 MSD 2007
> i686 Dual-Core AMD Opteron(tm) Processor 2210 AuthenticAMD GNU/Linux
More information about the llvm-dev