diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-04-21 20:23:34 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-04-21 20:23:34 +0000 |
commit | b31da25ee58e2b01aa0c189474a277b443d94517 (patch) | |
tree | bd1b4f62bb41babd8e6f5f4656b696bbdca57a63 /gdb/breakpoint.c | |
parent | 9c1d6fe5536783eb7199ca7767f7ee74d5e9e6fd (diff) | |
download | gdb-b31da25ee58e2b01aa0c189474a277b443d94517.zip gdb-b31da25ee58e2b01aa0c189474a277b443d94517.tar.gz gdb-b31da25ee58e2b01aa0c189474a277b443d94517.tar.bz2 |
* frame.h (selected_frame_level): Document as deprecated.
(frame_relative_level): Declare.
* stack.c (frame_relative_level): New function.
(selected_frame_level): Document as deprecated.
(select_frame): Do not set the selected_frame_level.
* stack.c (frame_info, record_selected_frame): Update.
(frame_command, current_frame_command): Update.
(up_silently_base, up_command, down_silently_base): Update.
(down_command): Update.
* inflow.c (kill_command): Update.
* tracepoint.c (finish_tfind_command): Update.
* corelow.c (core_open): Update.
* thread.c (info_threads_command): Update.
(do_captured_thread_select): Update.
* infcmd.c (finish_command): Update.
* breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index b48b4a2..bdf7359 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -901,7 +901,7 @@ insert_breakpoints (void) /* Save the current frame and level so we can restore it after evaluating the watchpoint expression on its own frame. */ saved_frame = selected_frame; - saved_level = selected_frame_level; + saved_level = frame_relative_level (selected_frame); /* Determine if the watchpoint is within scope. */ if (b->exp_valid_block == NULL) @@ -1002,7 +1002,7 @@ insert_breakpoints (void) /* Restore the frame and level. */ if ((saved_frame != selected_frame) || - (saved_level != selected_frame_level)) + (saved_level != frame_relative_level (selected_frame))) select_frame (saved_frame, saved_level); if (val) @@ -7282,7 +7282,7 @@ is valid is not currently in scope.\n", bpt->number); } save_selected_frame = selected_frame; - save_selected_frame_level = selected_frame_level; + save_selected_frame_level = frame_relative_level (selected_frame); select_frame (fr, -1); } |