From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: Tom Tromey <tromey@redhat.com>
Subject: Re: RFC: change "program exited" message
Date: Fri, 04 Mar 2011 19:38:00 -0000 [thread overview]
Message-ID: <201103041938.02711.pedro@codesourcery.com> (raw)
In-Reply-To: <m34o7iu1uw.fsf@fleche.redhat.com>
On Friday 04 March 2011 19:23:03, Tom Tromey wrote:
> >>>>> "Pedro" == Pedro Alves <pedro@codesourcery.com> writes:
>
> Pedro> (Do we actually need gdb_continue_off_end? It seemed
> Pedro> like in all but a couple of cases it was the same
> Pedro> as gdb_continue_to_end, except that the new function
> Pedro> doesn't handle using stubs.)
>
> I was not sure that this was safe to do.
It is. You'd even be fixing testsuite hangs and
timeouts for targets that require the stubs, as with
those you'll never see the "exited normally" message.
(I don't think I ever saw such a target though. Still.)
> --- a/gdb/testsuite/gdb.base/langs.exp
> +++ b/gdb/testsuite/gdb.base/langs.exp
> @@ -146,8 +146,7 @@ if [runto csub] then {
> gdb_breakpoint "exit"
> gdb_test "cont" "Breakpoint .*exit.*" "continue to exit in langs.exp"
> } else {
> - gdb_test "cont" "Program exited normally\\..*" \
> - "continue to exit in langs.exp"
> + gdb_continue_off_end
> }
> }
>
This whole if/then/else could be replaced with
gdb_continue_to_end even, it looks like it's just
like just an inlining of the same thing.
> If you think it is ok, I can make that change.
--
Pedro Alves
next prev parent reply other threads:[~2011-03-04 19:38 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-03 20:52 Tom Tromey
2011-03-03 21:18 ` Michael Snyder
2011-03-03 21:20 ` Pedro Alves
2011-03-04 7:37 ` Eli Zaretskii
2011-03-04 17:24 ` Tom Tromey
2011-03-04 19:13 ` Pedro Alves
2011-03-04 19:23 ` Tom Tromey
2011-03-04 19:38 ` Pedro Alves [this message]
2011-03-07 16:17 ` Tom Tromey
2011-03-08 9:43 ` Regression: [Re: RFC: change "program exited" message] Jan Kratochvil
2011-03-08 15:11 ` Tom Tromey
2011-03-09 14:37 ` Tom Tromey
2011-03-09 16:22 ` Jan Kratochvil
2011-03-09 16:29 ` Joel Brobecker
2011-03-09 17:28 ` Tom Tromey
2011-03-09 17:32 ` Jan Kratochvil
2011-03-09 18:15 ` Tom Tromey
2011-03-09 18:22 ` Jan Kratochvil
2011-03-09 18:58 ` Tom Tromey
2011-03-04 9:12 ` RFC: change "program exited" message Mark Kettenis
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=201103041938.02711.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=tromey@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