Re: arm_addr_bits_remove

Jim Blandy
2008-01-25T21:24:09Z

On Jan 25, 2008 10:49 AM, John David Anglin <dave@hiauly1.hia.nrc.ca> wrote:
> Regarding symbol tables, I would have to check what the two bits are
> used for. What struct/bits?

Within GDB, the debug info readers call record_line to add each source
location / pc mapping they find to GDB's internal tables. The issue
at hand is that record_line currently calls gdbarch_addr_bits_remove
on the pc values it's passed before recording them; apparently some
debug info had extra bits set in the addresses in the line number
info. Since this doesn't meet the spec (of either DWARF or STABS),
it's a bug in the producer; the call to gdbarch_addr_bits_remove is
meant to work around that bug. We've been discussing removing that
call, since it has caused problems recently.