* frame.c (get_frame_arch): Abort if called with NULL this_frame.
This commit is contained in:
parent
61212c0fb1
commit
0701b27131
2 changed files with 9 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue