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]

How to know which processor I'm targetting at runtime


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.

cheers,

Kris


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]