This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 0/7] Implement gdbarch_gdb_signal_{to,from}_target
- From: Joern Rennecke <joern dot rennecke at embecosm dot com>
- To: Sergio Durigan Junior <sergiodj at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 12 Aug 2013 04:48:19 -0400
- Subject: Re: [PATCH 0/7] Implement gdbarch_gdb_signal_{to,from}_target
- References: <20130810214926 dot eqls003q8gg44sso-nzlynne at webmail dot spamcop dot net> <m3a9kny3b6 dot fsf at redhat dot com>
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.