diff options
author | David Daney <ddaney@avtrex.com> | 2006-06-06 17:00:16 +0000 |
---|---|---|
committer | David Daney <daney@gcc.gnu.org> | 2006-06-06 17:00:16 +0000 |
commit | 696dad4b6bbaf23576e59546d1bd3e93dd0e96c4 (patch) | |
tree | e86d94df433101038a6e23099459185aff9d2089 /libjava/gnu | |
parent | c02174abd15428eaa2a47df5a1ca6dbbcc1703de (diff) | |
download | gcc-696dad4b6bbaf23576e59546d1bd3e93dd0e96c4.zip gcc-696dad4b6bbaf23576e59546d1bd3e93dd0e96c4.tar.gz gcc-696dad4b6bbaf23576e59546d1bd3e93dd0e96c4.tar.bz2 |
gcj.texi (libgcj Runtime Properties): Document gnu.gcj.runtime.NameFinder.show_raw and...
2006-06-05 David Daney <ddaney@avtrex.com>
* gcj.texi (libgcj Runtime Properties): Document
gnu.gcj.runtime.NameFinder.show_raw and
gnu.gcj.runtime.NameFinder.remove_unknown.
2006-06-05 David Daney <ddaney@avtrex.com>
* gnu/gcj/runtime/NameFinder.java (show_raw): New field.
(showRaw): New method.
* stacktrace.cc : Include gnu/gcj/runtime/StringBuffer.h.
(getLineNumberForFrame): Show IP offset in trace if line number
not available and show_raw true.
From-SVN: r114437
Diffstat (limited to 'libjava/gnu')
-rw-r--r-- | libjava/gnu/gcj/runtime/NameFinder.java | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/libjava/gnu/gcj/runtime/NameFinder.java b/libjava/gnu/gcj/runtime/NameFinder.java index e43886f..0742af1 100644 --- a/libjava/gnu/gcj/runtime/NameFinder.java +++ b/libjava/gnu/gcj/runtime/NameFinder.java @@ -67,13 +67,29 @@ public class NameFinder ("gnu.gcj.runtime.NameFinder.use_addr2line", "true") ).booleanValue(); + private static boolean show_raw + = Boolean.valueOf(System.getProperty + ("gnu.gcj.runtime.NameFinder.show_raw", "false") + ).booleanValue(); + + /** + * Return true if raw addresses should be printed in stacktraces + * when no line number information is available. + */ + static final boolean showRaw() + { + return show_raw; + } + private static final boolean remove_unknown = Boolean.valueOf(System.getProperty ("gnu.gcj.runtime.NameFinder.remove_unknown", "true") ).booleanValue(); - // Return true if non-Java frames should be removed from stack - // traces. + /** + * Return true if non-Java frames should be removed from stack + * traces. + */ static final boolean removeUnknown() { return remove_unknown; |