arm_addr_bits_remove

Maciej W. Rozycki macro@linux-mips.org
Mon Feb 4 10:16:00 GMT 2008


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



More information about the Gdb-patches mailing list