I need to write some gdb macros which should be different between 32 and 64 bit architectures. I am looking for a way to determine in gdb whether a debugged executable is 32 or 64 bit.
info target includes file type information
eg. file type elf32-i386
but it is embedded in a longer output.
Being new to gdb macros, I don't know how to handle this output, or find another way to get this.
There is no python gdb yet.
dbbd source share