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

Simon Marchi via Gdb
2021-03-22T02:27:04Z

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