From: Pedro Alves <palves@redhat.com>
To: Xavier Roirand <roirand@adacore.com>, gdb-patches@sourceware.org
Cc: brobecker@adacore.com
Subject: Re: [RFA v2] (x86) Fix watchpoint using hardware breakpoint for some distro
Date: Tue, 20 Mar 2018 15:11:00 -0000 [thread overview]
Message-ID: <c0d80d21-9f0e-c6b0-caaf-7b6246e83807@redhat.com> (raw)
In-Reply-To: <9c7c8586-2940-bea9-d3fb-a13b0d38a32e@adacore.com>
On 03/20/2018 02:28 PM, Xavier Roirand wrote:
> Hello Pedro,
>
> I've replied to your comments and attached a v2 patch.
>
> Le 3/19/18 à 3:28 PM, Pedro Alves a écrit :
>> A few things are missing here:
>>
>> #1 - kernel versions where this was observed.
>>
>
> CentOS: 2.6.18-419.el5
> Suse: 2.6.27.19-5-pae
>
>> #2 - If it's not equal to TRAP_HWBKPT, then what's it equal to?
>> Â Â Â Â Â I assume zero?
>
> No, it's equal to 1.
Hmm, that's TRAP_BRKPT nowadays. What was '1' supposed to mean in
kernels of such vintage? What was it's symbolic name back then?
In the table in linux-ptrace.h, we see that modern kernels report
TRAP_BRKPT/1 for the "single-stepping a syscall" case. What do
those older kernels report in that case then?
>> Does the step-into-watchpoint case result in TRAP_TRACE, or does
>> that result in 0 too? That affects the "continue" in the comment above.
>
> This results to a value of 1 too.
What do those kernels report for hardware _breakpoints_? Is it 1 too?
Wondering whether we should make GDB_ARCH_IS_TRAP_HWBKPT return
true for 1 too...
Please provide a more complete picture.
Thanks,
Pedro Alves
next prev parent reply other threads:[~2018-03-20 15:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-16 14:07 [RFA] " Xavier Roirand
2018-03-19 14:29 ` Pedro Alves
2018-03-20 14:28 ` [RFA v2] " Xavier Roirand
2018-03-20 15:11 ` Pedro Alves [this message]
2018-03-21 16:17 ` Xavier Roirand
2018-03-26 11:38 ` Pedro Alves
2018-03-27 13:19 ` Xavier Roirand
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=c0d80d21-9f0e-c6b0-caaf-7b6246e83807@redhat.com \
--to=palves@redhat.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=roirand@adacore.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).