diff options
author | gary <gary@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-08-09 14:59:16 +0000 |
---|---|---|
committer | gary <gary@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-08-09 14:59:16 +0000 |
commit | 54a5ecb6b046485a8b1f476cf957f6320a42c59c (patch) | |
tree | bfd6118ea9cf4668374c47686e6a8c8f9a718e57 /libjava/stacktrace.cc | |
parent | 8f471b51f19f985b77c06e93fbf3ea67c0647fee (diff) | |
download | gcc-54a5ecb6b046485a8b1f476cf957f6320a42c59c.tar.gz |
2006-08-09 Gary Benson <gbenson@redhat.com>
* stacktrace.cc (accesscontrol_trace_fn): Skip non-Java frames.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116038 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/stacktrace.cc')
-rw-r--r-- | libjava/stacktrace.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libjava/stacktrace.cc b/libjava/stacktrace.cc index e81294ddf69..bd011d005ce 100644 --- a/libjava/stacktrace.cc +++ b/libjava/stacktrace.cc @@ -542,12 +542,14 @@ _Jv_StackTrace::accesscontrol_trace_fn (_Jv_UnwindState *state) _Jv_StackFrame *frame = &state->frames[state->pos]; FillInFrameInfo (frame); + if (!(frame->klass && frame->meth)) + return _URC_NO_REASON; + bool *stopping = (bool *) state->trace_data; if (*stopping) return _URC_NORMAL_STOP; if (frame->klass == &::java::security::AccessController::class$ - && frame->meth && strcmp (frame->meth->name->chars(), "doPrivileged") == 0) *stopping = true; |