This is the mail archive of the
mailing list for the GDB project.
Re: PATCH to dwarf2read.c:decode_locdesc
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 10 Jan 2002 14:58:05 -0500
- Subject: Re: PATCH to dwarf2read.c:decode_locdesc
- References: <firstname.lastname@example.org>
On Thu, Jan 10, 2002 at 12:26:33PM +0000, Jason Merrill wrote:
> I noticed that even with Daniel's recent C++ improvements (thanks!), vbase
> handling was still broken with dwarf2 because dwarf2read.c still didn't
> grok the complex location expression gcc now emits. As it happens, by a
> fluke simply adding support for the missing opcodes causes decode_locdesc
> to produce the answer gdb wants. The dwarf2 output expects the stack to
> start with the address of the object and produce the address of the base,
> whereas in the current gdb the stack starts with 0 and produces the
> negation of whatever constant is provided, which matches the stabs output.
> Of course, gdb tries to complain about the derefs twice in the process, but
> is currently muffled.
> So, it's not a complete solution, but it's entirely correct and fixes
> OK to commit?
[I can't approve but] thanks! This has been stewing on my TODO list
while I fixed other things in the type code.
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer