This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: DWARF-2 expression error in location list entries
- From: Carl Burch <cdb at cup dot hp dot com>
- To: gdb at sourceware dot org
- Date: Tue, 8 May 2007 15:49:22 -0700 (PDT)
- Subject: Re: DWARF-2 expression error in location list entries
Daniel-
> I believe the language was recently discussed on the dwarf workgroup
> list. It's unclear, but the error is correct. DW_OP_regx describes
> a location ("the value is in this register"), not a value ("the value is
> the contents of this register"). Therefore the value may not be
> stack-sized, and is not pushed on to the expression stack, so there's
> nothing for you to DW_OP_deref later.
>
> > The expression we have in mind to add is to describe Fortran reference
> > parameters in location list entries like :
> >
> > { 0x4022720--0x4022724: DW_OP_regx 32 DW_OP_deref }
>
> Isn't that just "DW_OP_bregx 32 0"?
Yes, I think so. Thanks for the clear explanation.
Any idea why the same situation in decode_locdesc() of dwarf2read.c is only
a complaint?
- Carl Burch
HP WDB Team