diff options
author | Bryce McKinlay <mckinlay@redhat.com> | 2006-05-11 22:20:07 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2006-05-11 23:20:07 +0100 |
commit | c1ef8ca9ac4a24a79f7f5b01c323b8cca0694c9b (patch) | |
tree | abcecba4f2cabd5f79274d6ddfbbea0fc35a9681 /libjava/gnu | |
parent | a33259d0bde156d499ac44731c994b7abe8363ad (diff) | |
download | gcc-c1ef8ca9ac4a24a79f7f5b01c323b8cca0694c9b.zip gcc-c1ef8ca9ac4a24a79f7f5b01c323b8cca0694c9b.tar.gz gcc-c1ef8ca9ac4a24a79f7f5b01c323b8cca0694c9b.tar.bz2 |
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
Diffstat (limited to 'libjava/gnu')
-rw-r--r-- | libjava/gnu/gcj/runtime/NameFinder.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libjava/gnu/gcj/runtime/NameFinder.java b/libjava/gnu/gcj/runtime/NameFinder.java index bfc3e25..e43886f 100644 --- a/libjava/gnu/gcj/runtime/NameFinder.java +++ b/libjava/gnu/gcj/runtime/NameFinder.java @@ -62,7 +62,7 @@ public class NameFinder */ private static Set blacklist = Collections.synchronizedSet(new HashSet()); - private static final boolean use_addr2line + private static boolean use_addr2line = Boolean.valueOf(System.getProperty ("gnu.gcj.runtime.NameFinder.use_addr2line", "true") ).booleanValue(); @@ -166,8 +166,11 @@ public class NameFinder procs.put(file, addr2line); } - if (addr2line.proc == null) - return; + if (addr2line.proc == null) + { + use_addr2line = false; + return; + } String hexAddr = "0x" + Long.toHexString(addr); String name; |