1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

improvements.

This commit is contained in:
Alain Magloire 2004-01-08 22:43:17 +00:00
parent 3f777884b8
commit 7d3eaf190b

View file

@ -150,7 +150,11 @@ public class StabsAddr2line {
byte[] strtab = stabstr.loadSectionData(); byte[] strtab = stabstr.loadSectionData();
StabsAddr2line addr2line = new StabsAddr2line(array, strtab, true); StabsAddr2line addr2line = new StabsAddr2line(array, strtab, true);
long address = Integer.decode(args[1]).longValue(); long address = Integer.decode(args[1]).longValue();
addr2line.getStartLine(address); int line = addr2line.getStartLine(address);
String function = addr2line.getFunction(address);
String filename = addr2line.getFileName(address);
System.out.println(Long.toHexString(address));
System.out.println(filename + ":" + function + ":" + line);
} }
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();