[PATCH 0/7] Implement gdbarch_gdb_signal_{to,from}_target

Joern Rennecke joern.rennecke@embecosm.com
Mon Aug 12 08:48:00 GMT 2013


Quoting Sergio Durigan Junior <sergiodj@redhat.com>:

> Sorry, but how are you building this?  I'm having trouble reproducing
> the failure.  I suppose you're building a GDB for AVR only,

yes, using --target=avr for configure.

> which is
> probably not building linux-tdep.o, where both
> linux_gdb_signal_{to,from}_target functions are defined.

Indeed, avr-tdep.o is the only *tdep* file built.

> There is no avr-linux-tdep.c, which means that when we're not building
> for a Linux target such functions won't be available because
> linux-tdep.o won't be built.  I'm not sure how to solve this specific
> problem (whether to propose this avr-linux-tdep or to solve this with
> #ifdef's).  Opinions are welcome.

Is linux-tdep.c really the right place for the host specific support
functions?

> For now, I have chosen to revert the patch for AVR.  This is not an
> urgent thing, and IMO it's more important to keep the tree buildable.
> Meanwhile we can discuss alternatives.
>
> I checked-in the following patch.
>
>   http://sourceware.org/ml/gdb-cvs/2013-08/msg00050.html

Yes, avr-gdb is building again for now.



More information about the Gdb-patches mailing list