From: Daniel Jacobowitz <drow@mvista.com>
To: Jim Blandy <jimb@redhat.com>
Cc: Eli Zaretskii <eliz@elta.co.il>,
Jeff Johnston <jjohnstn@redhat.com>,
gdb-patches@sources.redhat.com
Subject: Re: [RFA]: breakpoint.c patch (prelude to pending breakpoint support)
Date: Fri, 12 Dec 2003 02:51:00 -0000 [thread overview]
Message-ID: <20031212025139.GA12806@nevyn.them.org> (raw)
In-Reply-To: <vt2r7zbp00x.fsf@zenia.home>
On Thu, Dec 11, 2003 at 03:33:34PM -0500, Jim Blandy wrote:
>
> Daniel Jacobowitz <drow@mvista.com> writes:
> > Right now, there are five possible enable states:
> > enabled
> > disabled
> > permanent
> > call_disabled
> > shlib_disabled
> >
> > I'm not convinced that permanent should even be on the list. It's a
> > real oddball; and there's no reason that GDB couldn't virtually
> > "disable" a permanent breakpoint (step over it automatically when
> > hitting it; give it an always-false condition, in effect).
>
> I'm responsible for adding the permanent breakpoint kludge.
>
> Permanent breakpoints were added for HP-UX, where the dynamic linker
> lives in a special region of memory that the debugger cannot modify.
> The breakpoint instruction is hard-coded into the function; and GDB
> cannot write to that address to remove it. pa64solib.c seems to be
> the only code that creates them.
>
> In an earlier message, you said:
> > It's not clear what to do with permanent breakpoints (I don't think
> > that should be an enable state, long term!) so I chose the version
> > with minimal textual changes.
>
> Do you mean, here, that having breakpoint_enabled return false for
> permanent breakpoints results in fewer changes overall? I would
> expect the opposite --- permanent breakpoints really are enabled.
Yes, but most code either:
- Doesn't know about permanent breakpoints
or
- Doesn't want to deal with permanent breakpoints
Take a look at the patch Jeff posted yesterday for breakpoint.c to see
how this happens. I suspect it's mostly the former; if you wanted to
add permanent breakpoints to breakpoint_enabled() you'd have to review
all its callers to see the effect (which would be easier now).
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2003-12-12 2:51 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-11 1:11 Jeff Johnston
2003-12-11 4:09 ` Daniel Jacobowitz
2003-12-11 6:00 ` Eli Zaretskii
2003-12-11 14:21 ` Daniel Jacobowitz
2003-12-11 14:34 ` Eli Zaretskii
2003-12-12 19:05 ` J. Johnston
2003-12-11 20:36 ` Jim Blandy
2003-12-12 2:51 ` Daniel Jacobowitz [this message]
2003-12-12 6:18 ` Jim Blandy
2003-12-11 16:32 ` J. Johnston
2003-12-11 17:20 ` Eli Zaretskii
2003-12-11 19:33 ` J. Johnston
2003-12-11 19:50 ` Daniel Jacobowitz
2003-12-12 16:58 ` Eli Zaretskii
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=20031212025139.GA12806@nevyn.them.org \
--to=drow@mvista.com \
--cc=eliz@elta.co.il \
--cc=gdb-patches@sources.redhat.com \
--cc=jimb@redhat.com \
--cc=jjohnstn@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