APIdia Launch Partner
Top Methods
sun.jvm.hotspot.debugger

public Interface SymbolLookup

Known Direct Subinterfaces
sun.jvm.hotspot.debugger.Debugger

Method Summary

Modifier and TypeMethod and Description
public Address
lookup(String objectName, String symbol)

Looks up the given symbol in the context of the given object.

public OopHandle
lookupOop(String objectName, String symbol)

Looks up the given symbol in the context of the given object, assuming that symbol refers to a Java object.

Method Detail

lookupback to summary
public Address lookup(String objectName, String symbol)

Looks up the given symbol in the context of the given object.

FIXME: we may want to hide the objectName so the user does not have to specify it, but it isn't clear whether this will work transparently with dbx.

FIXME: what happens if the address is not found? Throw exception? Currently returns null.

lookupOopback to summary
public OopHandle lookupOop(String objectName, String symbol)

Looks up the given symbol in the context of the given object, assuming that symbol refers to a Java object. FIXME: still not sure whether this will be necessary. Seems that lookup of static fields with type "oop" already works, since the lookup routine returns the address of the oop (i.e., an oopDesc**).

FIXME: we may want to hide the objectName so the user does not have to specify it, but it isn't clear whether this will work transparently with dbx.

FIXME: what happens if the address is not found? Throw exception? Currently returns null.