This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
How to know which processor I'm targetting at runtime
- From: "Kris Warkentin" <kewarken at qnx dot com>
- To: <gdb at sources dot redhat dot com>
- Date: Tue, 11 Feb 2003 15:05:28 -0500
- Subject: 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