From: Jim Blandy <jimb@redhat.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFA: Breakpoint infrastructure cleanups [1/8] - define impl_breakpoint
Date: Wed, 08 Oct 2003 18:17:00 -0000 [thread overview]
Message-ID: <vt23ce3fvdo.fsf@zenia.home> (raw)
In-Reply-To: <20031008170233.GA9013@nevyn.them.org>
Daniel Jacobowitz <drow@mvista.com> writes:
> +/* GDB maintains two groups of breakpoints and related events. One
> + group are the "implementation breakpoints"; these are minimal
> + structures used to manage stopping the program. They map to a specific
> + stop reason (trap at a particular PC, for instance). The other group
> + are "user breakpoints"; these carry higher-level information including
> + source locations and breakpoint conditions. */
"minimal structures used to manage stopping the program" could be
almost anything. How about:
GDB maintains two groups of breakpoints and related events. One
group are the "implementation breakpoints" (struct
impl_breakpoint); these represent specific machine-level
mechanisms used to stop the program: trap instructions patched
into the code ("software breakpoints"), hardware breakpoints,
hardware watchpoint registers, and so on.
The other group are "user breakpoints" (struct breakpoint); these
are the breakpoints as seen and manipulated by the user. They
carry higher-level information like source locations and
breakpoint conditions.
A single user breakpoint may use several implementation
breakpoints to get the right effect. For example, the GNU C++
compiler emits two copies of each constructor: the 'in-charge'
constructor and the 'not-in-charge' constructor. So a user
breakpoint on the constructor would have two separate
implementation breakpoints, one for each copy.
next prev parent reply other threads:[~2003-10-08 18:17 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-08 17:02 Daniel Jacobowitz
2003-10-08 18:17 ` Jim Blandy [this message]
2003-10-14 1:30 ` Daniel Jacobowitz
2003-10-14 15:31 ` Andrew Cagney
2003-10-14 15:36 ` Daniel Jacobowitz
2003-10-14 16:03 ` Andrew Cagney
2003-10-08 18:21 ` Eli Zaretskii
2003-10-08 19:11 ` Daniel Jacobowitz
2003-10-09 6:04 ` Eli Zaretskii
2003-10-09 19:16 ` Michael Snyder
2003-11-06 17:57 ` Daniel Jacobowitz
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=vt23ce3fvdo.fsf@zenia.home \
--to=jimb@redhat.com \
--cc=drow@mvista.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