public inbox for archer-commits@sourceware.org help / color / mirror / Atom feed
From: jkratoch@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-jankratochvil-watchpoint3: Merge branch 'f-cleanup-fork-multifix' into archer-jankratochvil-watchpoint3 Date: Thu, 05 Jan 2012 09:18:00 -0000 [thread overview] Message-ID: <20120105091803.28140.qmail@sourceware.org> (raw) The branch, archer-jankratochvil-watchpoint3 has been updated via d925b6a8caa570f6419f08428cdd12423a73ef51 (commit) via a175f71b10e273753a53daf8959bb06dc44700e2 (commit) via ad61c29ff0157c81b0f5bb9a9c96e21e7756dba0 (commit) from c3028b82e4c65452d942caeb117ad86320615a9c (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit d925b6a8caa570f6419f08428cdd12423a73ef51 Merge: c3028b8 a175f71 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Thu Jan 5 10:17:57 2012 +0100 Merge branch 'f-cleanup-fork-multifix' into archer-jankratochvil-watchpoint3 commit a175f71b10e273753a53daf8959bb06dc44700e2 Merge: 5d23df2 ad61c29 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Thu Jan 5 10:17:53 2012 +0100 Merge branch 'f-cleanup-fork' into f-cleanup-fork-multifix commit ad61c29ff0157c81b0f5bb9a9c96e21e7756dba0 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Thu Jan 5 10:17:43 2012 +0100 Drop the broken s390-nat.c patch. ----------------------------------------------------------------------- Summary of changes: gdb/s390-nat.c | 55 +++++++------------------------------------------------ 1 files changed, 7 insertions(+), 48 deletions(-) First 500 lines of diff: diff --git a/gdb/s390-nat.c b/gdb/s390-nat.c index 883620c..0c2ea24 100644 --- a/gdb/s390-nat.c +++ b/gdb/s390-nat.c @@ -438,36 +438,11 @@ struct watch_area CORE_ADDR hi_addr; }; -/* Per-inferior data key. */ - -struct s390_inferior_data - { - struct watch_area *watch_base; - }; - -static struct s390_inferior_data * -s390_inferior_data_get (void) -{ - /* Intermediate patch stub. */ - static struct i386_inferior_data inf_data_local; - struct inferior *inf = current_inferior (); - struct i386_inferior_data *inf_data = &inf_data_local; - - return inf->pid == ptid_get_pid (inferior_ptid) ? inf_data : NULL; -} - -static struct watch_area * -s390_watch_base_get (void) -{ - struct s390_inferior_data *inferior_data = s390_inferior_data_get (); - - return inferior_data ? inferior_data->watch_base : NULL; -} +static struct watch_area *watch_base = NULL; static int s390_stopped_by_watchpoint (void) { - struct watch_area *watch_base = s390_watch_base_get (); per_lowcore_bits per_lowcore; ptrace_area parea; int result; @@ -496,13 +471,9 @@ s390_stopped_by_watchpoint (void) return result; } -/* Update hardware registers of this specific LP. LP must belong to - CURRENT_INFERIOR. */ - static void s390_fix_watch_points (struct lwp_info *lp) { - struct watch_area *watch_base; int tid; per_struct per_info; @@ -511,20 +482,9 @@ s390_fix_watch_points (struct lwp_info *lp) CORE_ADDR watch_lo_addr = (CORE_ADDR)-1, watch_hi_addr = 0; struct watch_area *area; - gdb_assert (lp == NULL || current_inferior ()->pid == PIDGET (lp->ptid)); - - if (lp == NULL) - { - tid = PIDGET (inferior_ptid); - watch_base = NULL; - } - else - { - tid = TIDGET (lp->ptid); - if (tid == 0) - tid = PIDGET (lp->ptid); - watch_base = s390_watch_base_get (); - } + tid = TIDGET (lp->ptid); + if (tid == 0) + tid = PIDGET (lp->ptid); for (area = watch_base; area; area = area->next) { @@ -555,8 +515,7 @@ s390_fix_watch_points (struct lwp_info *lp) perror_with_name (_("Couldn't modify watchpoint status")); } -/* Callback for linux_nat_iterate_watchpoint_lwps, - to call s390_fix_watch_points. */ +/* Callback for iterate_over_lwps, to call s390_fix_watch_points. */ static int s390_fix_watch_points_iterate (struct lwp_info *lp, void *arg) @@ -583,7 +542,7 @@ s390_insert_watchpoint (CORE_ADDR addr, int len, int type, area->next = watch_base; watch_base = area; - linux_nat_iterate_watchpoint_lwps (s390_fix_watch_points_iterate, NULL); + iterate_over_lwps (minus_one_ptid, s390_fix_watch_points_iterate, NULL); return 0; } @@ -611,7 +570,7 @@ s390_remove_watchpoint (CORE_ADDR addr, int len, int type, *parea = area->next; xfree (area); - linux_nat_iterate_watchpoint_lwps (s390_fix_watch_points_iterate, NULL); + iterate_over_lwps (minus_one_ptid, s390_fix_watch_points_iterate, NULL); return 0; } hooks/post-receive -- Repository for Project Archer.
next reply other threads:[~2012-01-05 9:18 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-01-05 9:18 jkratoch [this message] -- strict thread matches above, loose matches on Subject: below -- 2012-01-30 16:58 jkratoch 2012-01-24 14:19 jkratoch 2012-01-20 20:16 jkratoch 2012-01-20 11:07 jkratoch 2012-01-20 1:30 jkratoch 2012-01-20 1:20 jkratoch 2012-01-02 22:43 jkratoch 2012-01-02 16:46 jkratoch 2012-01-02 15:19 jkratoch 2011-12-26 23:24 jkratoch 2011-12-26 22:04 jkratoch 2011-12-26 20:32 jkratoch 2011-12-26 19:28 jkratoch
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20120105091803.28140.qmail@sourceware.org \ --to=jkratoch@sourceware.org \ --cc=archer-commits@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).