/tmp$ gcc -m32 -g -O0 ~/src/samples/hello.c -o hello
/tmp$ gdb hello
GNU gdb (GDB) 7.1-debian
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /tmp/hello...done.
(gdb) start
Temporary breakpoint 1 at 0x80483cd: file /home/josh/src/samples/hello.c, line 5.
Starting program: /tmp/hello
warning: the debug information found in "/lib/ld-2.11.2.so" does not match "/lib/ld-linux.so.2" (CRC mismatch).
warning: the debug information found in "/usr/lib/debug//lib/ld-2.11.2.so" does not match "/lib/ld-linux.so.2" (CRC mismatch).
warning: the debug information found in "/usr/lib/debug/lib/ld-2.11.2.so" does not match "/lib/ld-linux.so.2" (CRC mismatch).
Temporary breakpoint 1, main (argc=1, argv=0xffffd2d4) at /home/josh/src/samples/hello.c:5
5 printf("hello world\n");
/lib/ld-2.11.2.so corresponds to the 64-bit dynamic linker;
/lib/ld-linux.so.2 corresponds to the 32-bit dynamic linker. Not
surprising that they don't match; surprising that GDB expects them to...
- Josh Triplett