This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: "Preprocess" dwarf info?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Fabian Cenedese <Cenedese at indel dot ch>
- Cc: gdb at sourceware dot org
- Date: Thu, 18 Jan 2007 11:30:47 -0500
- Subject: Re: "Preprocess" dwarf info?
- References: <5.2.0.9.1.20070118102453.018662f0@NT_SERVER>
On Thu, Jan 18, 2007 at 10:24:59AM +0100, Fabian Cenedese wrote:
> With dwarf this info is not stored expressively anymore if a symbol
> is of type LOC_COMPUTED or LOC_COMPUTED_ARG. Instead gdb will
> evaluate the dwarf debug "code" to return the value every time. I know
> that there may be symbol "locations" that are not representable with
> just 1 or 2 values. But still values such as register numbers or offsets
> will always be the same.
>
> So is there a way to somehow "preprocess" the dwarf info to get out
> the same info gdb stores when using the stabs info?
At least one type already is preprocessed; look in dwarf2read.c and it
should be easy to find it.
--
Daniel Jacobowitz
CodeSourcery