[RFC] Remove START_INFERIOR_TRAPS_EXPECTED macro from nm header

Pierre Muller pierre.muller@ics-cnrs.unistra.fr
Tue Mar 22 09:59:00 GMT 2011



> -----Message d'origine-----
> De : Pedro Alves [mailto:pedro@codesourcery.com]
> Envoyé : mardi 22 mars 2011 10:34
> À : gdb-patches@sourceware.org
> Cc : Pierre Muller
> Objet : Re: [RFC] Remove START_INFERIOR_TRAPS_EXPECTED macro from nm
> header
> 
> 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.

  That shows that I still didn't understand what target_ops really is:

Is there only one single target_ops that this
only for the native configuration?
 If this is the case, I agree with your analysis, but
I am still not sure about that...

Pierre



More information about the Gdb-patches mailing list