This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: Avoid code duplication in loc list handling in dwarf2out


On Sun, Sep 20, 2009 at 01:59:28PM +0200, Jan Hubicka wrote:
> Hi,
> it has turned out that there is guality regression with this code.  The
> problem is caused by first/last variables in expample.c.  Those are not
> constant, but they do get variable list representing that they are
> indeed constant.
> 
> Code in current dwarf2out implementation notice the fact and output
> const_value attribute, while my new code simply goes through the generic
> route expanding the expression.  This ought to be semantically
> equivalent, just longer representation, but for some reason gdb fails to
> parse it.  What we end up with is DW_OP_location with
> DW_OP_implicit_value whose value is constant address of the other
> expression.  Any idea why GDB refuse to parse this variant?  Is that GDB
> bug or loc_descriptor should not handle SYMBOL_REFs this way?

Well, I can't parse this variant.  Could you post the DWARF in
question?

-- 
Daniel Jacobowitz
CodeSourcery


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