From: Vladimir Prus <ghost@cs.msu.su>
To: Jim Ingham <jingham@apple.com>
Cc: gdb@sources.redhat.com
Subject: Re: MI and pending breakpoints
Date: Wed, 15 Mar 2006 16:31:00 -0000 [thread overview]
Message-ID: <200603151929.31842.ghost@cs.msu.su> (raw)
In-Reply-To: <27491BE6-9DDB-4168-BDFC-9C092BF0DEBB@apple.com>
On Wednesday 15 March 2006 19:19, Jim Ingham wrote:
> You need to set the gdb variable "pending" to "on" before setting the
> breakpoint.
Do you mean:
set breakpoint pending on
? That's what I do (not shown in the example), and without it the ordinary
"break" won't set the breakpoint -- it will ask if pending breakpoint should
be set. But even with it, "-break-insert" refused to set pending breakpoint.
Maybe, there's was bug that's fixed on Apple branch?
In fact, with CVS HEAD version, -break-insert calls gdb_breakpoint, which
calls do_captured_parse_breakpoint which reports that file does not exists,
and process stops (see breakpoint.c:gdb_breakpoint and
mi/mi-cmd-break.c:mi_cmd_break_insert).
For "break", the do_captures_parse_breakpoint" is called as well, but after
then, an explicit check for not found file is made, and pending breakpoint is
added (see breakpoint.c:break_command_1)
> Since this is kind of a pain, we added a "-f" option to -
> break-insert that will do this for you wrapped around the breakpoint
> setting ("-f" because this feature was called "future-break" in the
> NeXT gdb many years ago.)
>
> It's also arguable that for -break-insert you ALWAYS want "pending"
> to be "on".
Yes, this might be good.
- Volodya
next prev parent reply other threads:[~2006-03-15 16:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-15 14:22 Vladimir Prus
2006-03-15 16:21 ` Jim Ingham
2006-03-15 16:30 ` Bob Rossi
2006-03-15 16:34 ` Jim Ingham
2006-03-15 16:48 ` Bob Rossi
2006-03-15 23:18 ` Jim Ingham
2006-03-16 15:36 ` Nick Roberts
2006-03-15 16:31 ` Vladimir Prus [this message]
2006-03-15 16:39 ` Jim Ingham
2006-03-17 10:35 ` Vladimir Prus
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=200603151929.31842.ghost@cs.msu.su \
--to=ghost@cs.msu.su \
--cc=gdb@sources.redhat.com \
--cc=jingham@apple.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