APIdia Launch Partner
Top Fields Constructors Methods
sun.jvm.hotspot.debugger.cdbg.basic

public Class BasicLineNumberMapping

extends Object
Class Inheritance
Imports
java.util.*, sun.jvm.hotspot.debugger.*, sun.jvm.hotspot.debugger.cdbg.*, sun.jvm.hotspot.utilities.AddressOps

Field Summary

Modifier and TypeField and Description
private List<BasicLineNumberInfo>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addLineNumberInfo(BasicLineNumberInfo info)

Add line number information for the given PC.

private boolean
check(Address addr, int idx)

private BasicLineNumberInfo
get(int i)

public void
public BasicLineNumberInfo
public void
recomputeEndPCs()

Recomputes the ending PCs of each interval based on the starting PC of the next one.

private BasicLineNumberInfo
searchLineNumbers(Address addr, int lowIdx, int highIdx)

public void
sort()

Sort the line number information by increasing starting program counter.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

infoListback to summary
private List<BasicLineNumberInfo> infoList

Constructor Detail

BasicLineNumberMappingback to summary
public BasicLineNumberMapping()

Method Detail

addLineNumberInfoback to summary
public void addLineNumberInfo(BasicLineNumberInfo info)

Add line number information for the given PC. The end PC may be a very loose approximation (i.e., the end of the given DLL) if that information is not available in the debug information. recomputeEndPCs() will recompute them if needed.

checkback to summary
private boolean check(Address addr, int idx)
getback to summary
private BasicLineNumberInfo get(int i)
iterateback to summary
public void iterate(LineNumberVisitor v)
lineNumberForPCback to summary
public BasicLineNumberInfo lineNumberForPC(Address pc) throws DebuggerException
recomputeEndPCsback to summary
public void recomputeEndPCs()

Recomputes the ending PCs of each interval based on the starting PC of the next one. If this needs to be called, must be called after sort().

searchLineNumbersback to summary
private BasicLineNumberInfo searchLineNumbers(Address addr, int lowIdx, int highIdx)
sortback to summary
public void sort()

Sort the line number information by increasing starting program counter. This must be done before any queries are made.