Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Magloire2003-11-19 20:51:24 +0000
committerAlain Magloire2003-11-19 20:51:24 +0000
commitd4457e175e061c687e3f1c0eb0b8e84b85f99ad1 (patch)
tree159fbbddd3b41736e281884c0cada11f042ac560
parentdc03462d49db49e26105666d7786b44ccc1c42a2 (diff)
downloadorg.eclipse.cdt-d4457e175e061c687e3f1c0eb0b8e84b85f99ad1.tar.gz
org.eclipse.cdt-d4457e175e061c687e3f1c0eb0b8e84b85f99ad1.tar.xz
org.eclipse.cdt-d4457e175e061c687e3f1c0eb0b8e84b85f99ad1.zip
Addr2line returns "??" when it does not find a filename.
-rw-r--r--core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/coff/parser/BinaryObject.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/coff/parser/BinaryObject.java b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/coff/parser/BinaryObject.java
index f38245267f..771b14acc3 100644
--- a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/coff/parser/BinaryObject.java
+++ b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/coff/parser/BinaryObject.java
@@ -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));

Back to the top