lib.dwfl
Class DwflModule

java.lang.Object
  extended by lib.dwfl.DwflModule

public class DwflModule
extends Object

A wrapper object around the libdwfl Dwfl_Module structure.


Field Summary
private  long bias
           
private  Dwarf dwarf
           
private  long high
           
private  long low
           
private  String name
           
private  Dwfl parent
           
private  long pointer
           
protected  LinkedList pubNames
           
protected  LinkedList symbolTable
           
 
Constructor Summary
DwflModule(long val, Dwfl parent, String name, long low, long high)
           
 
Method Summary
private static long dwfl_module_getsrc(long pointer, long addr)
           
private static long dwflModuleAddrdie(long pointer, long addr)
           
private static long dwflModuleGetBias(long pointer)
           
private static long dwflModuleGetDwarf(long pointer)
           
private  LinkedList get_cu_dies()
           
private  void get_pubnames()
           
 long getBias()
           
 DwflDie getCompilationUnit(long addr)
           
 LinkedList getCuDies()
           
 String getDebuginfo()
          Get the debuginfo path for DwflModule
protected  DwarfDie getDieByOffset(long offset)
           
 Dwarf getDwarf()
           
 ModuleElfBias getElf()
           
 DwflLine[] getLines(String filename, int lineo, int column)
          Get all the line records for a source position in a file.
 String getName()
          Get the name of the module.
protected  Dwfl getParent()
           
 void getPLTEntries(SymbolBuilder symbolBuilder)
           
protected  long getPointer()
           
 LinkedList getPubNames()
           
 DwflLine getSourceLine(long addr)
          Return line information for the specified address.
 void getSymbol(long address, SymbolBuilder symbolBuilder)
           
 void getSymbolByName(String name, SymbolBuilder symbolBuilder)
           
 void getSymtab(SymbolBuilder symbolBuilder)
           
 long highAddress()
           
 long lowAddress()
           
private  ModuleElfBias module_getelf()
           
private  DwarfDie offdie(long die, long offset)
           
 void setUserData(Object data)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pubNames

protected LinkedList pubNames

symbolTable

protected LinkedList symbolTable

pointer

private final long pointer

parent

private final Dwfl parent

name

private final String name

low

private final long low

high

private final long high

dwarf

private Dwarf dwarf

bias

private long bias
Constructor Detail

DwflModule

DwflModule(long val,
           Dwfl parent,
           String name,
           long low,
           long high)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

lowAddress

public long lowAddress()

highAddress

public long highAddress()

getPointer

protected long getPointer()

getName

public String getName()
Get the name of the module.

Returns:
the name

getParent

protected Dwfl getParent()

getElf

public ModuleElfBias getElf()

getPubNames

public LinkedList getPubNames()

get_pubnames

private void get_pubnames()

getSymtab

public void getSymtab(SymbolBuilder symbolBuilder)

getPLTEntries

public void getPLTEntries(SymbolBuilder symbolBuilder)

getDieByOffset

protected DwarfDie getDieByOffset(long offset)

offdie

private DwarfDie offdie(long die,
                        long offset)

getSymbol

public void getSymbol(long address,
                      SymbolBuilder symbolBuilder)

module_getelf

private ModuleElfBias module_getelf()

getLines

public DwflLine[] getLines(String filename,
                           int lineo,
                           int column)
Get all the line records for a source position in a file.

Parameters:
filename - the file
lineno - line number of source
column - column number, or 0
Returns:
array of DwflLine objects.

getSymbolByName

public void getSymbolByName(String name,
                            SymbolBuilder symbolBuilder)

setUserData

public void setUserData(Object data)

getDebuginfo

public String getDebuginfo()
Get the debuginfo path for DwflModule

Returns:
path to debuginfo package if found, NULL otherwise

getCuDies

public LinkedList getCuDies()

get_cu_dies

private LinkedList get_cu_dies()

getCompilationUnit

public DwflDie getCompilationUnit(long addr)

dwflModuleAddrdie

private static long dwflModuleAddrdie(long pointer,
                                      long addr)

getDwarf

public Dwarf getDwarf()

dwflModuleGetDwarf

private static long dwflModuleGetDwarf(long pointer)

getBias

public long getBias()

dwflModuleGetBias

private static long dwflModuleGetBias(long pointer)

getSourceLine

public DwflLine getSourceLine(long addr)
Return line information for the specified address.


dwfl_module_getsrc

private static long dwfl_module_getsrc(long pointer,
                                       long addr)