This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
							  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]