From: "J. Johnston" <jjohnstn@redhat.com>
To: "J. Johnston" <jjohnstn@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFA: patch to ia64-linux-nat.c
Date: Thu, 10 Jul 2003 19:46:00 -0000 [thread overview]
Message-ID: <3F0DC29A.8020007@redhat.com> (raw)
In-Reply-To: <3F049410.70109@redhat.com>
Has anybody had a chance to take a look at this?
-- Jeff J.
J. Johnston wrote:
> The attached patch fixes a problem with potential extraneous breakpoints
> being found
> by gdb on ia64.
>
> The ia64_linux_stopped_by_watchpoint() routine is not verifying that it has
> a SIGTRAP signal vs other signals and is only checking the si_code being
> 4.
>
> The fix merely adds a check that if the signal is not a SIGTRAP, then we
> are not at a hardware watchpoint.
>
> Ok to commit?
>
> 2003-07-03 Jeff Johnston <jjohnstn@redhat.com>
>
> * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
> that we have a SIGTRAP before returning non-zero.
>
>
> ------------------------------------------------------------------------
>
> Index: ia64-linux-nat.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/ia64-linux-nat.c,v
> retrieving revision 1.16
> diff -u -p -r1.16 ia64-linux-nat.c
> --- ia64-linux-nat.c 7 Feb 2003 04:49:34 -0000 1.16
> +++ ia64-linux-nat.c 3 Jul 2003 20:31:26 -0000
> @@ -634,7 +634,8 @@ ia64_linux_stopped_by_watchpoint (ptid_t
> errno = 0;
> ptrace (PTRACE_GETSIGINFO, tid, (PTRACE_ARG3_TYPE) 0, &siginfo);
>
> - if (errno != 0 || (siginfo.si_code & 0xffff) != 0x0004 /* TRAP_HWBKPT */)
> + if (errno != 0 || siginfo.si_signo != SIGTRAP ||
> + (siginfo.si_code & 0xffff) != 0x0004 /* TRAP_HWBKPT */)
> return 0;
>
> psr = read_register_pid (IA64_PSR_REGNUM, ptid);
next prev parent reply other threads:[~2003-07-10 19:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-03 20:37 J. Johnston
2003-07-10 19:46 ` J. Johnston [this message]
2003-07-10 20:19 ` Kevin Buettner
2003-07-24 16:43 ` J. Johnston
2003-08-12 19:56 ` J. Johnston
2003-08-12 20:43 ` Kevin Buettner
2003-08-13 19:15 ` J. Johnston
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=3F0DC29A.8020007@redhat.com \
--to=jjohnstn@redhat.com \
--cc=gdb-patches@sources.redhat.com \
/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: link
Be 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