From: toddpw@wrs.com (Todd Whitesel)
To: gdb-patches@cygnus.com
Subject: Re: `step'-like commands in breakpoint commands list
Date: Tue, 13 Apr 1999 21:10:00 -0000 [thread overview]
Message-ID: <199904140410.VAA11189@alabama.wrs.com> (raw)
In-Reply-To: <199904122248.AAA31605@mail.macqel.be>
> On m68k-motorola-sysv and on powerpc-ibm-aix4.1.5.0, with gdb-4.17.87,
> the testsuite fails at `continue in infrun_breakpoint_command_test', because
> the breakpoint commands list is only executed up to the first `step' command.
> The patch below fixes that.
...
> +#if 0 /* FIXME : Disabled 1999-04-12 by phdm@macqel.be, to allow `step',
> + `next', `finish', etc. to work in breakpoint commands list. As
> + this is the only instruction that sets `breakpoint_proceeded',
> + all the `breakpoint_proceeded'-related stuff could also be removed.
> + */
> breakpoint_proceeded = 1; /* We're about to proceed... */
> +#endif
Is this patch safe?? What about the comment further down:
/* The inferior is proceeded by the command; bomb out now.
The bpstat chain has been blown away by wait_for_inferior.
But since execution has stopped again, there is a new bpstat
to look at, so start over. */
I should also note that due to the recursive implementation of
bpstat_do_actions(), it is probably not a good idea to allow
bpstat_do_action() calls to accumulate on the stack if the inferior
keeps hitting breakpoints that have command lists. Also, when you
request a Quit, then GDB forgets all that breakpoint command list
state, and behaves differently when you continue the inferior.
--
Todd Whitesel
toddpw @ wrs.com
prev parent reply other threads:[~1999-04-13 21:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-12 15:51 Philippe De Muyter
1999-04-13 21:10 ` Todd Whitesel [this message]
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=199904140410.VAA11189@alabama.wrs.com \
--to=toddpw@wrs.com \
--cc=gdb-patches@cygnus.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