1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-21 15:23:59 +02:00

addr2line returns "??" when not finding the filename

This commit is contained in:
Alain Magloire 2003-11-19 20:47:37 +00:00
parent 9d3d0c03a0
commit 6deb0ad99c

View file

@ -252,6 +252,10 @@ public class BinaryObject extends BinaryFile implements IBinaryObject {
if (addr2line != null) {
try {
String filename = addr2line.getFileName(sym.addr);
// Addr2line returns the funny "??" when it can not find the file.
if (filename != null && filename.equals("??")) {
filename = null;
}
if (filename != null) {
if (cygpath != null) {
sym.filename = new Path(cygpath.getFileName(filename));