[RFC] Remove START_INFERIOR_TRAPS_EXPECTED macro from nm header

Mark Kettenis mark.kettenis@xs4all.nl
Tue Mar 22 11:00:00 GMT 2011


> From: Pedro Alves <pedro@codesourcery.com>
> Date: Tue, 22 Mar 2011 09:34:26 +0000
> 
> Why's this any better?  I claim that it's worse.
> START_INFERIOR_TRAPS_EXPECTED isn't ever used by anything
> outside of the native target backend implementation ---
> it doesn't qualify in the set of macros that are evil for
> a multi-arch gdb.  Then, nothing in common code _should_
> know about how many internal traps are expected 
> during startup_inferior, but you've just exposed that
> detail with to_start_inferior_traps_expected.

I have to agree with Pedro here.

If you really think that getting rid of the nm header files is
something that has to be done (I'm not convinced it is), then perhaps
you should simply add:

MH_CFLAGS=-DSTART_INFERIOR_TRAPS_EXPECTED=3

to the appropriate Makefile fragments.  I'm not convinced that is an
improvmenet though.



More information about the Gdb-patches mailing list