diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-01-15 15:38:57 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-01-15 15:38:57 +0000 |
commit | 0701b271317da6be2e9913db907285c2ebc39711 (patch) | |
tree | f505c9c94da986de5b8df55f5fad76c67da86f68 /gdb/frame.c | |
parent | 61212c0fb13d0a54f12748dcc56a41c15a91d12a (diff) | |
download | binutils-gdb-0701b271317da6be2e9913db907285c2ebc39711.tar.gz |
* frame.c (get_frame_arch): Abort if called with NULL this_frame.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r-- | gdb/frame.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/frame.c b/gdb/frame.c index 06dcf22dca5..a46b6268d26 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -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; } |