2012-06-06 Pedro Alves <palves@redhat.com>
authorPedro Alves <palves@redhat.com>
Wed, 6 Jun 2012 19:27:23 +0000 (19:27 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 6 Jun 2012 19:27:23 +0000 (19:27 +0000)
* infrun.c (handle_inferior_event): Remove calls to
reinit_frame_cache that follow a context_switch call.

gdb/ChangeLog
gdb/infrun.c

index 94dbba0ef1f5f2a77f1aaf4e040c81db0e4e98b2..17d2f4f622a65acb7d638f35b5a47371d9ed248a 100644 (file)
@@ -1,3 +1,8 @@
+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
index 0017211bc44ea3191d7054d90017c585149d606f..210cdd7f49aec4d99ef76a91c5a8a34128622f96 100644 (file)
@@ -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 ();