flag to know that we are compiling GDB for an arm target

Simon Marchi simon.marchi@polymtl.ca
Mon Mar 22 02:26:54 GMT 2021



On 2021-03-21 10:21 p.m., Zied Guermazi wrote:
> hi,
> 
> is it possible to know, at compile time, whether we are compiling gdb for an armv7 target ( e.g arm-linux, arm-none-eabi ... ) or not? for example a define that gets propagated to source/header files.
> 
> Kind Regards
> 
> Zied Guermazi
> 
> 

Not really, since one GDB can be configured for multiple target
architectures (you can include all possible target architectures with
--enable-targets=all when running configure).

What are you trying to achieve?

Simon


More information about the Gdb mailing list