From: Andrew Cagney <ac131313@cygnus.com>
To: Doug Evans <dje@transmeta.com>
Cc: Eli Zaretskii <eliz@is.elta.co.il>, gdb@sources.redhat.com
Subject: Re: does bpstat_print stop printing prematurely?
Date: Thu, 09 May 2002 20:44:00 -0000 [thread overview]
Message-ID: <3CDB4216.30607@cygnus.com> (raw)
In-Reply-To: <15548.25669.770292.567059@casey.transmeta.com>
> > Assuming one decides to print all breakpoints, either move the
> > control for source/frame printing into bpstat_print or pull
> > the loop in bpstat_print into normal_stop().
>
> Hmmm... another possibility is to do neither.
> Instead, with the preprocessing pass in bpstat_print one
> could early exit if printit_done is found, otherwise print
> all the non-pc breakpoints first, then print all the pc-breakpoints last,
> and then return one of `print_stop_action'.
>
> That's requires a minimal amount of change and feels safest.
> The only issue is whether programs that parse the output would
> get confused if multiple pc breakpoints get reported.
> The source location would still only be printed once so I'm guessing
> it's ok, but someone with some knowledge of all the various
> programs that parse the output should be consulted.
Hmm,
Yes, I agree with the comment about not reporting multiple watchpoint
trigers is a bug. As for breakpoints, normal behavour is to just report
the first real breakpoint - you've previously been advised that you've
multiple breakpoints and I'm guessing this [unfortunatly] is behind the
early loop exit.
The functions that handle bpstat are in bad shape anyway. One function
should analyze the stop reason creating the list. A second function
should use this list to decide what to print. MI needs this separation
to be able to report stop events reliably.
Anyway, suggest at least bug-reporting it.
Andrew
prev parent reply other threads:[~2002-05-10 3:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-15 13:03 Doug Evans
2002-04-15 22:03 ` Eli Zaretskii
2002-04-15 23:43 ` Doug Evans
2002-04-16 0:40 ` Eli Zaretskii
2002-04-16 5:55 ` Eli Zaretskii
2002-04-16 8:43 ` Doug Evans
2002-04-16 10:50 ` Doug Evans
2002-05-09 20:44 ` Andrew Cagney [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=3CDB4216.30607@cygnus.com \
--to=ac131313@cygnus.com \
--cc=dje@transmeta.com \
--cc=eliz@is.elta.co.il \
--cc=gdb@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