public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-jankratochvil-bpstat_what: Code cleanup.
@ 2010-05-03  9:31 jkratoch
  0 siblings, 0 replies; only message in thread
From: jkratoch @ 2010-05-03  9:31 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-bpstat_what has been updated
       via  e96bbdd4d5333f22abf9ab10b13e5983405055a8 (commit)
      from  fea1d4f32f56e2c5a2a5716997e6101930dce32e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit e96bbdd4d5333f22abf9ab10b13e5983405055a8
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon May 3 11:31:29 2010 +0200

    Code cleanup.

-----------------------------------------------------------------------

Summary of changes:
 gdb/infrun.c |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

First 500 lines of diff:
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 8cb7426..88fe40e 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -3950,6 +3950,7 @@ process_event_stop_test:
   /* Breakpoints get deleted/created here which calls reinit_frame_cache thus
      invalidating current_frame.  Call explicitly get_current_frame.  */
   frame = NULL;
+  gdbarch = NULL;
 
   /* Handle cases caused by hitting a breakpoint.  */
   {
@@ -4056,14 +4057,16 @@ process_event_stop_test:
 	    break;
 	  case bp_longjmp:
 	    {
+	      struct frame_info *frame = get_current_frame ();
+	      struct gdbarch *gdbarch = get_frame_arch (frame);
+
 	      /* If we hit the breakpoint at longjmp while stepping, we
 		 install a momentary breakpoint at the target of the
 		 jmp_buf.  */
 
 	      CORE_ADDR jmp_buf_pc;
 	      if (gdbarch_get_longjmp_target_p (gdbarch)
-		  && gdbarch_get_longjmp_target (gdbarch, get_current_frame (),
-						 &jmp_buf_pc))
+		  && gdbarch_get_longjmp_target (gdbarch, frame, &jmp_buf_pc))
 		{
 		  /* We're going to replace the current step-resume breakpoint
 		     with a longjmp-resume breakpoint.  */
@@ -4149,7 +4152,12 @@ process_event_stop_test:
 	    /* Switch terminal for any messages produced by breakpoint_re_set.  */
 	    target_terminal_ours_for_output ();
 
-	    jit_event_handler (gdbarch);
+	    {
+	      struct frame_info *frame = get_current_frame ();
+	      struct gdbarch *gdbarch = get_frame_arch (frame);
+
+	      jit_event_handler (gdbarch);
+	    }
 
 	    target_terminal_inferior ();
 
@@ -4419,6 +4427,7 @@ infrun: not switching back to stepped thread, it has vanished\n");
      the frame cache to be re-initialized, making our FRAME variable
      a dangling pointer.  */
   frame = get_current_frame ();
+  gdbarch = get_frame_arch (frame);
 
   /* If stepping through a line, keep going if still within it.
 


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-05-03  9:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-03  9:31 [SCM] archer-jankratochvil-bpstat_what: Code cleanup jkratoch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).