Bug 4951

Summary: testHpdDisplayCommands(frysk.hpd.TestDisplayCommand)frysk.expunit.TimeoutException: Timeout of 5 expired
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description Andrew Cagney 2007-08-23 02:45:06 UTC
testHpdDisplayCommands(frysk.hpd.TestDisplayCommand)frysk.expunit.TimeoutException:
Timeout of 5 expired
   at frysk.expunit.Expect.expectMilliseconds(TestRunner)
   at frysk.expunit.Expect.expect(TestRunner)
   at frysk.expunit.Expect.expect(TestRunner)
   at frysk.expunit.Expect.expect(TestRunner)
   at frysk.expunit.Expect.expect(TestRunner)
   at frysk.hpd.TestDisplayCommand.testHpdDisplayCommands(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)

looking at the trace log:

22-Aug-07 10:42:41 PM frysk.expunit.Expect expectMilliseconds
FINE: frysk.expunit.Expect@22f078 find display.*2:.*temp = .*\(fhpd\)  in
<<display int_21*2
frysk.debuginfo.VariableOptimizedOutException
   at frysk.debuginfo.LocationExpression.decode(fhpd)
   at frysk.debuginfo.DebugInfoEvaluator$AccessMemory.getBufferAddr(fhpd)
   at frysk.debuginfo.DebugInfoEvaluator$AccessMemory.getInt(fhpd)
   at frysk.debuginfo.DebugInfoEvaluator.get(fhpd)
   at frysk.debuginfo.DebugInfoEvaluator.get(fhpd)
   at frysk.expr.CppTreeParser.expr(fhpd)
   at frysk.expr.CppTreeParser.expr(fhpd)
   at frysk.expr.CppTreeParser.expr(fhpd)
   at frysk.debuginfo.DebugInfo.print(fhpd)
   at frysk.rt.DisplayValue.refresh(fhpd)
   at frysk.rt.UpdatingDisplayValue.refresh(fhpd)
   at frysk.rt.DisplayValue.<init>(fhpd)
   at frysk.rt.UpdatingDisplayValue.<init>(fhpd)
   at frysk.rt.DisplayManager.createDisplay(fhpd)
   at frysk.hpd.DisplayCommand.handle(fhpd)
   at frysk.hpd.CLI.execCommand(fhpd)
   at frysk.bindir.fhpd.main(fhpd)
Internal debugger error:
(fhpd) >>?

since the intent here isn't to test optimization but rather variable display the
test can probably be changed to use the program funit-rt-varchange.c (like
TestDisplayValue) which is more robust to this problem.
Comment 1 Adam Jocksch 2007-08-29 22:40:48 UTC
This has been fixed, TestDisplayCommand now uses funit-rt-varchange.

ChangeLog:
2007-08-29  Adam Jocksch  <ajocksch@redhat.com>

	* DisplayCommand.java (handle): Now uses Value.toPrint().
	* TestDisplayCommand.java (testHpdDisplayCommands): Now uses
	funit-rt-varchange instead of hpd-c, marked unresolved 4941.