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

Simon Marchi via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.