From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: robert song <robertsong.japan@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Why no hwatch command in gdb ?
Date: Thu, 10 Mar 2011 10:34:00 -0000 [thread overview]
Message-ID: <20110310103409.GA29242@host1.jankratochvil.net> (raw)
In-Reply-To: <AANLkTi=5n0EebJQkWvXvCHnVxy5fEqrxSztdDhhcpCNR@mail.gmail.com>
Hi Robert,
On Thu, 10 Mar 2011 11:09:23 +0100, robert song wrote:
> On 3/10/11, Jan Kratochvil <jan.kratochvil@redhat.com> wrote:
> > Watchpoints are normally created by default as hardware ones. They should
> > fallback to their software variants when you get out of the number of debug
> > registers but that does not work well now.
> >
> "does not work well now" means ?
GNU gdb (GDB) 7.2.50.20110310-cvs
This GDB was configured as "x86_64-unknown-linux-gnu".
(gdb) watch gdb_stdout
Hardware watchpoint 2: gdb_stdout
(gdb) watch gdb_stderr
Hardware watchpoint 3: gdb_stderr
(gdb) watch gdb_stdlog
Hardware watchpoint 4: gdb_stdlog
(gdb) watch gdb_stdin
Hardware watchpoint 5: gdb_stdin
(gdb) watch gdb_stdtargin
Hardware watchpoint 6: gdb_stdtargin
(gdb) continue
Continuing.
Warning:
Could not insert hardware watchpoint 5.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.
(gdb)
> The problem is that sometimes I just want to set only hardware
> watchpoints, and don't want to set software watchpoints. But the
> watchpoint will be changed to software ones if hardware watchpoints
> are exceeded,
When at least one watchpoint is a software one GDB has to start single-stepping
the inferior. At that moment it does not matter whether some additional
watchpoints are software or hardware ones.
Thanks,
Jan
next prev parent reply other threads:[~2011-03-10 10:34 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-10 7:25 robert song
2011-03-10 8:12 ` Jan Kratochvil
2011-03-10 10:09 ` robert song
2011-03-10 10:34 ` Jan Kratochvil [this message]
2011-03-10 11:26 ` Eli Zaretskii
2011-03-10 11:34 ` Joel Brobecker
2011-03-10 12:27 ` Pedro Alves
2011-03-10 11:55 ` Jan Kratochvil
2011-03-10 14:47 ` Frank Ch. Eigler
2011-03-10 12:18 ` robert song
2011-03-10 13:45 ` Jan Kratochvil
2011-03-10 14:47 ` Philippe Waroquiers
2011-03-10 21:04 ` Tom Tromey
2011-03-11 7:58 ` Philippe Waroquiers
2011-03-11 17:48 ` Daniel Jacobowitz
2011-03-10 8:23 paawan oza
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=20110310103409.GA29242@host1.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb@sourceware.org \
--cc=robertsong.japan@gmail.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