Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Chandru <chandru@in.ibm.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: Doug Evans <dje@google.com>, gdb-patches@sourceware.org
Subject: Re: [patch]: inform user that a watchpoint is hit
Date: Mon, 24 Aug 2009 11:27:00 -0000	[thread overview]
Message-ID: <4A927651.9040608@in.ibm.com> (raw)
In-Reply-To: <20090819081532.GA7264@host0.dyn.jankratochvil.net>

Jan Kratochvil wrote:
> This is not reproducible for me.
> * Which distribution?
> * Which exact NVR (name-version-release) of the distribution package?
> * The URL http://sourceware.org/ml/gdb-patches/2009-08/msg00254.html was
>   referring to 4 patches, do you have all of them applied?
>   (but these 4 patches have no effect on this testcase for me, shown as
>   "archer-jankratochvil-watchpoint" below)
> * Please provide both the testcase and complete GDB run screenshot in the same
>   mail.  Once you refer to "rawatch.c", second time "rwatch.c".
>   When you provide a screenshot refer to all the exact versions and possible
>   patches applied to it.
> * Provide the architecture in use (x86_64? i686? could it be ppc64?).
> * Provide even the compiler version used.
> * Provide the kernel version in use due to various ptrace syscall bugsin the
>   past and present (asking primarily for the possibility of ppc64 in use and
>   the watchpoints on it).
>
>
> Thanks,
> Jan
>
>   
Hello Jan and Doug,

Thanks for your mails. I today downloaded gdb-6.6 and gdb-6.8.50.20090824.
gdb-6.6 outputs the messages as follows when the program is restarted


Program exited normally.
(gdb) r
Starting program: /home/chandru/rawatch
Hardware read watchpoint 2: value1
Hardware access (read/write) watchpoint 3: value1
Hardware read watchpoint 2: value1
Hardware access (read/write) watchpoint 3: value1
Hardware read watchpoint 2: value1
Hardware access (read/write) watchpoint 3: value1

Breakpoint 1, main () at rawatch.c:20
20          value1 =3;
(gdb)



whereas gdb-6.8.50.20090824 doesn't.

Program exited normally.
(gdb) r
Starting program: /home/chandru/rawatch

Breakpoint 1, main () at rawatch.c:20
20          value1 =3;
(gdb)



It is not the case that the read or access watchpoints are not being hit.
Just the messages like 'Hardware read watchpoint 2: value1' and
'Hardware access (read/write) watchpoint 3: value1'  are not shown
on the screen when the program is restarted and the condition

if (breakpoint_enabled (b))
      mention(b);


only helped to see those messages. It is only the first occurrence of the
watchpoints that the messages don't get displayed for. We could see the
messages for later occurrences of the watchpoints on value1. Hence this
is just a cosmetic issue and doesn't look like a architecture or a kernel
specific issue.

Thanks,
Chandru


  reply	other threads:[~2009-08-24 11:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-14 13:15 Chandru
2009-08-15 10:57 ` Doug Evans
2009-08-15 12:22   ` Chandru
2009-08-18 17:31     ` Doug Evans
2009-08-19  8:05       ` Chandru
2009-08-19 13:03         ` Jan Kratochvil
2009-08-24 11:27           ` Chandru [this message]
2009-08-27  7:45             ` Chandru
2009-08-27  8:26               ` Jan Kratochvil

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=4A927651.9040608@in.ibm.com \
    --to=chandru@in.ibm.com \
    --cc=dje@google.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@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