diff options
author | Pedro Alves <palves@redhat.com> | 2012-06-06 19:27:23 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-06-06 19:27:23 +0000 |
commit | c3a01a2280502569bc526ac897d87aad0afd3a97 (patch) | |
tree | 99a2bef5faa3b83a0e0dbfd75454bea885237d34 /gdb | |
parent | d25f45d93a552fa5951fef8799ad68086b7bfb32 (diff) | |
download | gdb-c3a01a2280502569bc526ac897d87aad0afd3a97.zip gdb-c3a01a2280502569bc526ac897d87aad0afd3a97.tar.gz gdb-c3a01a2280502569bc526ac897d87aad0afd3a97.tar.bz2 |
2012-06-06 Pedro Alves <palves@redhat.com>
* infrun.c (handle_inferior_event): Remove calls to
reinit_frame_cache that follow a context_switch call.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/infrun.c | 10 |
2 files changed, 7 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 94dbba0..17d2f4f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2012-06-06 Pedro Alves <palves@redhat.com> + * infrun.c (handle_inferior_event): Remove calls to + reinit_frame_cache that follow a context_switch call. + +2012-06-06 Pedro Alves <palves@redhat.com> + * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use context_switch and remove stale comment. diff --git a/gdb/infrun.c b/gdb/infrun.c index 0017211..210cdd7 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3511,10 +3511,7 @@ handle_inferior_event (struct execution_control_state *ecs) } if (!ptid_equal (ecs->ptid, inferior_ptid)) - { - context_switch (ecs->ptid); - reinit_frame_cache (); - } + context_switch (ecs->ptid); /* Immediately detach breakpoints from the child before there's any chance of letting the user delete breakpoints from the @@ -3631,10 +3628,7 @@ handle_inferior_event (struct execution_control_state *ecs) fprintf_unfiltered (gdb_stdlog, "infrun: TARGET_WAITKIND_EXECD\n"); if (!ptid_equal (ecs->ptid, inferior_ptid)) - { - context_switch (ecs->ptid); - reinit_frame_cache (); - } + context_switch (ecs->ptid); singlestep_breakpoints_inserted_p = 0; cancel_single_step_breakpoints (); |