Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* dwarf2_get_pc_bounds problem
@ 2003-02-14 10:59 Martin M. Hunt
  2003-02-14 15:12 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Martin M. Hunt @ 2003-02-14 10:59 UTC (permalink / raw)
  To: gdb

I'm investigating several errors in recent versions of gdb and they all
seem to be caused by bogus values for lowpc and highpc returned from 
dwarf2_get_pc_bounds(). I'm not a DWARF expert so maybe the problem is
bad debug info, but the code in dwarf2_get_pc_bounds seems suspicious.

What I'm seeing is that with a program linked at 0x80000000, all the
highpc and lowpc look fine, except those derived from DW_AT_ranges
information.  Those are all very small, like 0x100.  Looking at the code
in dwarf2_get_pc_bounds(), most of it seems to be trying to calculate a
variable "base" which is then never used. Perhaps a simple addition was
left out?

Martin








^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-02-14 19:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-14 10:59 dwarf2_get_pc_bounds problem Martin M. Hunt
2003-02-14 15:12 ` Daniel Jacobowitz
2003-02-14 19:01   ` Martin M. Hunt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox