From: Eli Zaretskii <eliz@gnu.org>
To: Thiago Jung Bauermann <bauerman@br.ibm.com>
Cc: gdb-patches@sourceware.org, luisgpm@linux.vnet.ibm.com,
tyrlik@us.ibm.com
Subject: Re: [PATCH 0/2] Support the new PPC476 processor
Date: Wed, 30 Dec 2009 20:43:00 -0000 [thread overview]
Message-ID: <831vicdwd0.fsf@gnu.org> (raw)
In-Reply-To: <200912300112.13363.bauerman@br.ibm.com>
> From: Thiago Jung Bauermann <bauerman@br.ibm.com>
> Date: Wed, 30 Dec 2009 01:12:13 -0200
> Cc: luisgpm@linux.vnet.ibm.com, tyrlik@us.ibm.com
>
> > > - Available GDB commands: [r|a]watch <variable> (rwatch/awatch/watch)
> > > or [r|a]watch <variable> if <variable> == <4-bytes unsigned constant>
> > >
> > > - Usage example: awatch i / rwatch *0xbffff8e8 / watch i if i == 28
> >
> > Will GDB decide automatically whether to use hardware-accelerated
> > conditions or the current implementation, whereby an unconditional
> > hardware watchpoint is set, and when it breaks, GDB itself evaluates
> > the condition? I think this should be done automatically.
>
> Yes, GDB will use hardware-accelerated conditions automatically, when
> available on the target.
That's good to hear, thanks.
> watch-range addr, +len
What would be the use-case for watching a range of addresses that is
not an integral multiple of a variable's size?
> > > - Available GDB commands: hbreak-range <address1>:<address2 |
> > > +<unsigned int length>> where <address1> <= <address2> / hbreak-range
> > > <line number start>:<line number end>
> > >
> > > - Usage example: hbreak-range 0x10000658,0x10000660 / hbreak-range
> > > 0x10000658,+8 / hbreak-range 20,30
> >
> > Again, what are the use-cases where such breakpoints would be useful?
>
> They don't seem to be useful for C-level debugging, but can be for assembly-
> level debugging. For instance, if you have a block of code that has more than
> one entrypoint and therefore you don't know where it will get jumped into, you
> can put a ranged breakpoint to cover the entire block.
Thanks for the explanations. I think we should emulate this on
architectures that don't have this in hardware (it doesn't sound
hard).
next prev parent reply other threads:[~2009-12-30 20:43 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-16 20:48 Sérgio Durigan Júnior
2009-12-17 4:42 ` Joel Brobecker
2009-12-17 14:19 ` Thiago Jung Bauermann
2009-12-17 16:15 ` Sérgio Durigan Júnior
2009-12-18 10:19 ` Eli Zaretskii
2009-12-20 12:33 ` Joel Brobecker
2009-12-30 3:13 ` Thiago Jung Bauermann
2009-12-30 20:43 ` Eli Zaretskii [this message]
2009-12-30 22:15 ` Daniel Jacobowitz
2009-12-31 4:05 ` Eli Zaretskii
2009-12-31 16:28 ` Daniel Jacobowitz
2009-12-31 16:50 ` Pedro Alves
2009-12-20 13:16 ` Joel Brobecker
2009-12-20 15:09 ` Sérgio Durigan Júnior
2009-12-20 18:24 ` Joel Brobecker
2009-12-21 12:54 ` Thiago Jung Bauermann
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=831vicdwd0.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=bauerman@br.ibm.com \
--cc=gdb-patches@sourceware.org \
--cc=luisgpm@linux.vnet.ibm.com \
--cc=tyrlik@us.ibm.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