Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
Addr2Line Class Reference
Collaboration diagram for Addr2Line:
Collaboration graph

List of all members.

Public Member Functions

 Addr2Line (String library) throws IOException
String getLine (String address) throws IOException

Private Attributes

Process addr2line
BufferedWriter stdin
BufferedReader stdout
BufferedReader stderr

Detailed Description

Definition at line 49 of file

Constructor & Destructor Documentation

Addr2Line.Addr2Line ( String  library) throws IOException [inline]

Definition at line 55 of file

       String[] args = { "addr2line", "-C", "-f", "-e", library };
       addr2line = Runtime.getRuntime().exec(args);
       stdin = new BufferedWriter(new OutputStreamWriter(addr2line.getOutputStream()));
       stdout = new BufferedReader(new InputStreamReader(addr2line.getInputStream()));
       stderr = new BufferedReader(new InputStreamReader(addr2line.getErrorStream()));

Here is the call graph for this function:

Member Function Documentation

String Addr2Line.getLine ( String  address) throws IOException [inline]

Definition at line 63 of file

       stdin.write(address + "\n"); stdin.flush();
       String symbol = stdout.readLine();
       String source = stdout.readLine();
       return symbol + "[" + source + "]";

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Definition at line 50 of file

BufferedReader Addr2Line.stderr [private]

Definition at line 53 of file

BufferedWriter Addr2Line.stdin [private]

Definition at line 51 of file

BufferedReader Addr2Line.stdout [private]

Definition at line 52 of file

The documentation for this class was generated from the following file: