How can I debug (GDB) the 32-bit part of a 64-bit application?

I have an application compatible with 64 and 32 bit. If I open the application via gdb (exec-file application), it will open the 64-bit part of the application. How can I open the 32 bit part instead?

Is there an argument that I missed?

+3
source share
1 answer

Apparently this can be done by setting a parameter for gdb:

gdb -arch i386

+2
source

Source: https://habr.com/ru/post/1784783/


All Articles