Debug 32 bit application with gdb in 64 bit environment

10,341

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.

Share:
10,341
whoi
Author by

whoi

Updated on September 15, 2022

Comments

  • whoi
    whoi over 1 year

    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?

    • Paul R
      Paul R over 13 years
      What problem are you having when you try this ?
    • whoi
      whoi over 13 years
      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
      whoi over 13 years
      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).
    • Nordlöw
      Nordlöw over 7 years
      Does this hold for Windows and Mingw-W64 aswell? See: stackoverflow.com/questions/40680886/…