This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: arm_addr_bits_remove
- From: "Maciej W. Rozycki" <macro at linux-mips dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: Pedro Alves <pedro at codesourcery dot com>, Jim Blandy <jimb at red-bean dot com>, gdb-patches <gdb-patches at sourceware dot org>
- Date: Mon, 4 Feb 2008 10:15:57 +0000 (GMT)
- Subject: Re: arm_addr_bits_remove
- References: <47965D31.3040602@codesourcery.com> <8f2776cb0801221525w1d26661dgf6452f876197a591@mail.gmail.com> <479752C8.8030201@portugalmail.pt> <8f2776cb0801231121r3fe9aea0q6f3c3d6887fcb251@mail.gmail.com> <20080123192842.GA22477@caradoc.them.org> <8f2776cb0801231311o19c31781h8a4663c405bcd22b@mail.gmail.com> <479819E2.1030603@portugalmail.pt> <8f2776cb0801232227n64502d4akef4642b051e77772@mail.gmail.com> <4798871B.4080207@codesourcery.com> <20080124133844.GA15771@caradoc.them.org> <20080124214849.GF3979@adacore.com>
On Thu, 24 Jan 2008, Joel Brobecker wrote:
> > > 2008-01-24 Pedro Alves <pedro@codesourcery.com>
> > >
> > > * buildsym.c (record_line): Don't try to strip unused addr bits.
>
> > If you're daring enough, this is OK - this could affect any target
> > defining gdbarch_addr_bits_remove so keep an eye out in case hppa,
> > m88k, mips, or s390 break. Please wait another day before checking it
> > in, in case someone else knows more about it.
>
> I just ran the testsuite on hppa and mips-irix, no regression.
> It might not come as a surprise given that the patch is removing
> something that handles what amounts to incorrect debugging info,
> but it's better than nothing. In both case, we use GNU and the
> system linker.
For the record -- to ever hit this case on MIPS you would have to run the
test suite in the 32-bit kernel mode, so IRIX certainly does not apply
here. One of the embedded targets might fit, e.g. using newlib and the
GNU sim. Still this would be a bug if it mattered these days as proper
sign-extension of addresses is meant to be done for MIPS now.
Maciej