OSDN Git Service

* infrun.c (struct inferior_status): Replace fields
authorcagney <cagney>
Mon, 10 Jun 2002 23:25:49 +0000 (23:25 +0000)
committercagney <cagney>
Mon, 10 Jun 2002 23:25:49 +0000 (23:25 +0000)
commitf89bf9190908c0cf73d63d3fcf0b4df3d131a47b
treefad76f39361edbe62a03af3219e4398e98219c2c
parent327dade17ae9b4ffa35ba268feeff6cef9019252
* infrun.c (struct inferior_status): Replace fields
selected_frame_address and selected_level with field
selected_frame_id.
(save_inferior_status): Update.  Use get_frame_id.
(struct restore_selected_frame_args): Delete.
(restore_selected_frame): Update.  Use frame_find_by_id.
(restore_inferior_status): Update.

* breakpoint.h (struct breakpoint): Change type of
watchpoint_frame to frame_id.
* breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
call to get_current_frame.
(do_enable_breakpoint): Use frame_find_by_id.  Remove call to
get_current_frame.
(watchpoint_check): Use frame_find_by_id.

* frame.h (record_selected_frame): Delete declaration.
* stack.c (record_selected_frame): Delete function.

* frame.h (struct frame_id): Define.
(get_frame_id): Declare.
(frame_find_by_id): Declare.
* frame.c (frame_find_by_id): New function.
(get_frame_id): New function.
gdb/ChangeLog
gdb/breakpoint.c
gdb/breakpoint.h
gdb/frame.c
gdb/frame.h
gdb/infrun.c
gdb/stack.c