|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cmpware.elf.Dwarf
public class Dwarf
This describes an ELF / DWARF debug section interpretation.
Copyright (c) 2004 Cmpware, Inc. All Rights Reserved.
| Field Summary | |
|---|---|
static java.lang.String |
copyright
Copyright string |
| Constructor Summary | |
|---|---|
Dwarf()
Constructor |
|
Dwarf(Elf elf)
This constructor initializes the DWARF data structures with the sections from the ELF file data. |
|
| Method Summary | |
|---|---|
java.lang.String |
getSourceFileName(int addr)
This method takes in an address (often the Program Counter of a running program) and returns the name of the file containing the source code for this portion of the code. |
int |
getSourceLine(int addr)
This method returns the line number in the source code file given a memory address of an instruction. |
boolean |
isDwarf()
This method returns true if valid DWARF information was found and false otherwise. |
java.lang.String |
toString()
This method returns a string representation of the DWARF data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String copyright
| Constructor Detail |
|---|
public Dwarf()
public Dwarf(Elf elf)
elf - The data loaded from an ELF file.| Method Detail |
|---|
public java.lang.String getSourceFileName(int addr)
addr - The address.
public int getSourceLine(int addr)
addr - The program counter / memory address
of an instruction.
public boolean isDwarf()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||