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

public Interface LoadObject

Known Direct Implementers
sun.jvm.hotspot.debugger.posix.DSO, sun.jvm.hotspot.debugger.windbg.DLL
Imports
sun.jvm.hotspot.debugger.*

A LoadObject models a DSO/DLL/EXE; that is, an entity relocated by the run-time linker.

Method Summary

Modifier and TypeMethod and Description
public ClosestSymbol
closestSymbolToPC(Address pc)

Fetch the name of the closest exported symbol and the distance of the PC to that symbol.

public BlockSym
debugInfoForPC(Address pc)

Get debug information for the given program counter.

public Address
getBase()

Base address at which this loadobject was relocated at run-time

public CDebugInfoDataBase
getDebugInfoDataBase()

Returns a debug info database for this loadobject if debug info is present; otherwise, returns null.

public String
getName()

Full path name of this loadobject

public long
getSize()

Size of the loadobject in bytes (determines the range of program counters and data contained within this loadobject)

public LineNumberInfo
lineNumberForPC(Address pc)

Returns line number information for the given PC, including source file name (not specified whether this is an absolute or relative path) and start and end PCs for this line.

Method Detail

closestSymbolToPCback to summary
public ClosestSymbol closestSymbolToPC(Address pc) throws DebuggerException

Fetch the name of the closest exported symbol and the distance of the PC to that symbol. Returns null if the PC was not within this loadobject or if a symbol could not be found before this PC. FIXME: specify whether this is mangled/demangled.

debugInfoForPCback to summary
public BlockSym debugInfoForPC(Address pc) throws DebuggerException

Get debug information for the given program counter. PC must be contained within this loadobject or a DebuggerException is thrown. Returns null if there is no debug information available (i.e., because this is not a debug build).

getBaseback to summary
public Address getBase()

Base address at which this loadobject was relocated at run-time

getDebugInfoDataBaseback to summary
public CDebugInfoDataBase getDebugInfoDataBase() throws DebuggerException

Returns a debug info database for this loadobject if debug info is present; otherwise, returns null.

getNameback to summary
public String getName()

Full path name of this loadobject

getSizeback to summary
public long getSize()

Size of the loadobject in bytes (determines the range of program counters and data contained within this loadobject)

lineNumberForPCback to summary
public LineNumberInfo lineNumberForPC(Address pc) throws DebuggerException

Returns line number information for the given PC, including source file name (not specified whether this is an absolute or relative path) and start and end PCs for this line. Returns null if no line number information is available or if the given PC is not in this loadobject.