Commit c1ef8ca9 by Bryce McKinlay Committed by Bryce McKinlay

NameFinder.java (lookup): If exec'ing addr2line fails, don't try again.

2006-05-11  Bryce McKinlay  <mckinlay@redhat.com>

	* gnu/gcj/runtime/NameFinder.java (lookup): If exec'ing addr2line
	fails, don't try again.
	(use_addr2line): Field no longer final.

From-SVN: r113715
parent a33259d0
2006-05-11 Bryce McKinlay <mckinlay@redhat.com> 2006-05-11 Bryce McKinlay <mckinlay@redhat.com>
* gnu/gcj/runtime/NameFinder.java (lookup): If exec'ing addr2line
fails, don't try again.
(use_addr2line): Field no longer final.
2006-05-11 Bryce McKinlay <mckinlay@redhat.com>
* gnu/gcj/runtime/NameFinder.java (blacklist): New static field. * gnu/gcj/runtime/NameFinder.java (blacklist): New static field.
(lookup): If addr2line fails to find an address, flag the binary as (lookup): If addr2line fails to find an address, flag the binary as
having no debug info and avoid calling addr2line on it again. having no debug info and avoid calling addr2line on it again.
......
...@@ -62,7 +62,7 @@ public class NameFinder ...@@ -62,7 +62,7 @@ public class NameFinder
*/ */
private static Set blacklist = Collections.synchronizedSet(new HashSet()); private static Set blacklist = Collections.synchronizedSet(new HashSet());
private static final boolean use_addr2line private static boolean use_addr2line
= Boolean.valueOf(System.getProperty = Boolean.valueOf(System.getProperty
("gnu.gcj.runtime.NameFinder.use_addr2line", "true") ("gnu.gcj.runtime.NameFinder.use_addr2line", "true")
).booleanValue(); ).booleanValue();
...@@ -166,8 +166,11 @@ public class NameFinder ...@@ -166,8 +166,11 @@ public class NameFinder
procs.put(file, addr2line); procs.put(file, addr2line);
} }
if (addr2line.proc == null) if (addr2line.proc == null)
return; {
use_addr2line = false;
return;
}
String hexAddr = "0x" + Long.toHexString(addr); String hexAddr = "0x" + Long.toHexString(addr);
String name; String name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment