Bug 5362 - frysk.scopes is too closely wired to dwfl
Summary: frysk.scopes is too closely wired to dwfl
Status: ASSIGNED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-19 16:28 UTC by Andrew Cagney
Modified: 2008-03-25 17:42 UTC (History)
2 users (show)

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-11-19 16:28:57 UTC
Contrast the implementation with frysk.value which is disconnected from the Dwfl
(via frysk.debuginfo.TypeAttribute aka TypeFactory).
Comment 1 Sami Wagiaalla 2007-11-27 20:46:18 UTC
For this the LocationExpression code needs to be changed to take an a mediating
object instead of variable die.

This issue will also pop up for the Type code particularly returning the value
of a static data memeber.

public Value getValue(DebugInfoFrame frame) {
	List ops = variableDie.getFormData(frame.getAdjustedAddress());
	ISA isa = frame.getTask().getISA();
	LocationExpression locationExpression = new LocationExpression(frame,
variableDie, ops);
	PieceLocation pieceLocation
	    = new PieceLocation(locationExpression.decode(this.getType(isa)
							  .getSize()));
	Value value = new Value(this.getType(isa), pieceLocation);
	return value;
    }