public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-tromey-ambiguous-linespec: switch to program space of SAL when updating locations
@ 2011-08-19 18:50 tromey
  0 siblings, 0 replies; only message in thread
From: tromey @ 2011-08-19 18:50 UTC (permalink / raw)
  To: archer-commits

The branch, archer-tromey-ambiguous-linespec has been updated
       via  de600ca29211dcdd7c06b09ee3a082fd02831073 (commit)
      from  05fb7afd3b8ecc2aed938bd111e2e64045427f43 (commit)

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

- Log -----------------------------------------------------------------
commit de600ca29211dcdd7c06b09ee3a082fd02831073
Author: Tom Tromey <tromey@redhat.com>
Date:   Fri Aug 19 12:50:10 2011 -0600

    switch to program space of SAL when updating locations

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

Summary of changes:
 gdb/breakpoint.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

First 500 lines of diff:
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 9f08dde..d72bba6 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -11650,8 +11650,11 @@ update_breakpoint_locations (struct breakpoint *b,
 
   for (i = 0; i < sals.nelts; ++i)
     {
-      struct bp_location *new_loc = 
-	add_location_to_breakpoint (b, &(sals.sals[i]));
+      struct bp_location *new_loc;
+
+      switch_to_program_space_and_thread (sals.sals[i].pspace);
+
+      new_loc = add_location_to_breakpoint (b, &(sals.sals[i]));
 
       /* Reparse conditions, they might contain references to the
 	 old symtab.  */


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


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

only message in thread, other threads:[~2011-08-19 18:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-19 18:50 [SCM] archer-tromey-ambiguous-linespec: switch to program space of SAL when updating locations tromey

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).