This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
gdbarch_bfd_arch_info (current_gdbarch) returns a `struct bfd_arch_info' which contains everything you need.I have some ugly code that relies on a define from one of our config/arch/tm*.h files. Essentially we're just doing: #define SOLIB_PROCESSOR [x86|mips|arm....] so that we can do some setup elsewhere. Is there a nice way to get which architecture I'm running at runtime? I'd like to get rid of our tm files if possible.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |