Bug 4001

Summary: Internal debugger error: java.lang.NegativeArraySizeException
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Stan Cox <scox>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 2246    

Description Andrew Cagney 2007-02-08 02:01:03 UTC
This is part of the output from running:
   $ ./TestRunner -c FINE frysk.bindir.TestFhd
java.lang.NegativeArraySizeException
   at lib.dw.DwarfDie.get_scopes(fhpd)
   at lib.dw.DwarfDie.getScopes(fhpd)
   at frysk.cli.hpd.ExprSymTab.getDie(fhpd)
   at frysk.cli.hpd.ExprSymTab.get(fhpd)
   at frysk.expr.CppTreeParser.expr(fhpd)
   at frysk.expr.CppTreeParser.expr(fhpd)
   at frysk.cli.hpd.SymTab.print(fhpd)
   at frysk.cli.hpd.CLI$PrintHandler.handle(fhpd)
   at frysk.cli.hpd.CLI.execCommand(fhpd)
   at fhpd.main(fhpd)
Comment 1 Stan Cox 2007-02-16 22:37:51 UTC
dwarf_getscopes is returning -1 when the PC is in an inlined function (and the
call was assumed to succeed).

Comment 2 Stan Cox 2007-03-01 15:09:12 UTC
1. An issue was filed about dwarf_getscopes and inlined functions.
2. * hpd-c.c (func_1,func_2): Don't inline.
3. * TestFhd.java (testHpd): Enable. Skip optimized out values.