diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-12-13 21:57:40 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-12-13 21:57:40 +0000 |
commit | b87efeee0c8edb62a6877ed9b78198b7b66d8c04 (patch) | |
tree | 3630c153da43bc311547b4d1d26bd64bc9cdc6d8 /gdb/frame.c | |
parent | 3de2dc4ff6e4c9232f3f231adc8a2dd5609c5db5 (diff) | |
download | gdb-b87efeee0c8edb62a6877ed9b78198b7b66d8c04.zip gdb-b87efeee0c8edb62a6877ed9b78198b7b66d8c04.tar.gz gdb-b87efeee0c8edb62a6877ed9b78198b7b66d8c04.tar.bz2 |
2002-12-13 Andrew Cagney <ac131313@redhat.com>
* frame.c (deprecated_update_current_frame_pc_hack): New
function.
* frame.h (deprecated_update_current_frame_pc_hack): Declare.
* infrun.c (normal_stop): Use said function instead of directly
modifying the frame's PC.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r-- | gdb/frame.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/frame.c b/gdb/frame.c index b23d517..44e0811 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -1291,6 +1291,17 @@ frame_extra_info_zalloc (struct frame_info *fi, long size) } void +deprecated_update_current_frame_pc_hack (CORE_ADDR pc) +{ + /* FIXME: cagney/2002-12-06: Has the PC in the current frame + changed? "infrun.c", Thanks to DECR_PC_AFTER_BREAK, can change + the PC after the initial frame create. This puts things back in + sync. */ + if (current_frame != NULL) + current_frame->pc = pc; +} + +void _initialize_frame (void) { obstack_init (&frame_cache_obstack); |