From 5b19791236a18dafef77545101eb3a70bb5a03e1 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Sun, 4 May 2008 00:41:44 +0000 Subject: * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0, return the null frame ID to terminate the backtrace. --- gdb/rs6000-tdep.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/rs6000-tdep.c') 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)); } -- cgit v1.1