* frame.c (get_frame_arch): Abort if called with NULL this_frame.
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 15 Jan 2009 15:38:57 +0000 (15:38 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Thu, 15 Jan 2009 15:38:57 +0000 (15:38 +0000)
gdb/ChangeLog
gdb/frame.c

index 928e7601a49da6c515b8797c0a8fb0702fed0ac7..5a8f5d3d83fabb3b13093f57a98f8c1f4a5ecfa1 100644 (file)
@@ -1,3 +1,7 @@
+2009-01-15  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * frame.c (get_frame_arch): Abort if called with NULL this_frame.
+
 2009-01-15  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * value.h (address_of_variable): Add prototype.
index 06dcf22dca5f91c4f5f935b73914f9f144f46897..a46b6268d2691bd9f1afa59f6a50c16824fb5465 100644 (file)
@@ -1795,6 +1795,11 @@ safe_frame_unwind_memory (struct frame_info *this_frame,
 struct gdbarch *
 get_frame_arch (struct frame_info *this_frame)
 {
+  /* In the future, this function will return a per-frame
+     architecture instead of current_gdbarch.  Calling the
+     routine with a NULL value of this_frame is a bug!  */
+  gdb_assert (this_frame);
+
   return current_gdbarch;
 }
 
This page took 0.027611 seconds and 4 git commands to generate.