10

Is there any specific step required to debug 32 bit application with 64 bit gdb under 64 bit O.S.

Normally I use -m32 switch for gcc, is there something like for gdb?

4
  • What problem are you having when you try this ?
    – Paul R
    Oct 14, 2010 at 9:43
  • It is very strange that, the problem is gone. I use eclipse CDT, When I tried to debug, a library mismatch was thrown(I did not note). But nothing now..
    – whoi
    Oct 14, 2010 at 9:49
  • It is the message when a segfault occurs: warning: the debug information found in "/lib/ld-2.11.1.so" does not match "/lib/ld-linux.so.2" (CRC mismatch).
    – whoi
    Oct 14, 2010 at 10:15
  • Does this hold for Windows and Mingw-W64 aswell? See: stackoverflow.com/questions/40680886/…
    – Nordlöw
    Nov 21, 2016 at 14:09

1 Answer 1

10

No: 64-bit GDB can debug either 32 or 64-bit processes.

This message warning: the debug information found in "/lib/ld-2.11.1.so" does not match "/lib/ld-linux.so.2" (CRC mismatch) simply means that your installed libc-debuginfo package does not match your installed libc package, and that you will not be able to do source-level debugging on ld-linux.so.2. Most of the time you don't want to debug anything in ld-linux.so.2 anyway, so the message is harmless.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.