* rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
authorUlrich Weigand <uweigand@de.ibm.com>
Sun, 4 May 2008 00:41:44 +0000 (00:41 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Sun, 4 May 2008 00:41:44 +0000 (00:41 +0000)
return the null frame ID to terminate the backtrace.

gdb/ChangeLog
gdb/rs6000-tdep.c

index 4c52d0e3ed3d3438757c0de86dd6628aca68e64f..2f8573f90eff928828921d230342b1d615406917 100644 (file)
@@ -1,3 +1,8 @@
+2008-05-03  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
+       return the null frame ID to terminate the backtrace.
+
 2008-05-03  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * rs6000-tdep.c: Do not include "rs6000-tdep.h".
index 6f3d2e5e1b72a426624b2dc8691e6d10c121e572..790776734e9ae6de5c492f3b26ac0971121d4b5e 100644 (file)
@@ -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));
 }