Bug 4001 - Internal debugger error: java.lang.NegativeArraySizeException
Summary: Internal debugger error: java.lang.NegativeArraySizeException
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Stan Cox
URL:
Keywords:
Depends on:
Blocks: 2246
  Show dependency treegraph
 
Reported: 2007-02-08 02:01 UTC by Andrew Cagney
Modified: 2007-03-01 15:09 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.