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

Addr2line returns "??" when it does not find a filename.

This commit is contained in:
Alain Magloire 2003-11-19 20:51:24 +00:00
parent dc03462d49
commit d4457e175e

View file

@ -252,6 +252,11 @@ 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));