How can I debug (GDB) the 32-bit part of a 64-bit application?
I have an app that is 64- and 32-bit-compatible. If I open the app through gdb (exec-fi开发者_运维百科le app), it opens the 64-bit part of the app. How can I open the 32-bit part instead?
Is there an argument that I have missed?
Apparently it can be done by setting a parameter for gdb:
gdb -arch i386
精彩评论