aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-tdep.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2008-05-04 00:41:44 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2008-05-04 00:41:44 +0000
commit5b19791236a18dafef77545101eb3a70bb5a03e1 (patch)
treeb76d887da4ab95317ae145e0b75798c09dc4b34d /gdb/rs6000-tdep.c
parente551b91b02f65114b00c85bae4627656cef21ea7 (diff)
downloadgdb-5b19791236a18dafef77545101eb3a70bb5a03e1.zip
gdb-5b19791236a18dafef77545101eb3a70bb5a03e1.tar.gz
gdb-5b19791236a18dafef77545101eb3a70bb5a03e1.tar.bz2
* rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
return the null frame ID to terminate the backtrace.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r--gdb/rs6000-tdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index 6f3d2e5..7907767 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -2550,6 +2550,10 @@ rs6000_frame_this_id (struct frame_info *this_frame, void **this_cache,
{
struct rs6000_frame_cache *info = rs6000_frame_cache (this_frame,
this_cache);
+ /* This marks the outermost frame. */
+ if (info->base == 0)
+ return;
+
(*this_id) = frame_id_build (info->base, get_frame_func (this_frame));
}