Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: Tom Tromey <tromey@redhat.com>,
	Pedro Alves <pedro@codesourcery.com>,
	gdb-patches@sourceware.org
Subject: Re: Regression:  [Re: RFC: change "program exited" message]
Date: Wed, 09 Mar 2011 16:29:00 -0000	[thread overview]
Message-ID: <20110309160847.GW30306@adacore.com> (raw)
In-Reply-To: <20110309153947.GA15507@host1.jankratochvil.net>

> While the .exp testfile does not have too straightforward way to accept the
> non-zero exit code I do not think a testfile should return with exit code
> non-zero.  But I failed to modify the .adb file such way, isn't there some
> easy way, Joel?

The non-zero status code is a consequence of a feature that I am
testing in this testcase, which is an *unhandled* exception. So
I need the exception to propagate all the way.

So, I think we have no choice but to change the testcase itself,
or enhance gdb_continue_to_end to be able to say that we expect
the inferior to terminate with a non-zero status.

I think the latter solution is probably preferable, because I'm
pretty sure I'll mis-handle bareboard, or remote/gdbserver, or
some other unusual configuration...

I can look at that tomorrow.

-- 
Joel


  reply	other threads:[~2011-03-09 16:09 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-03 20:52 RFC: change "program exited" message 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
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 [this message]
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=20110309160847.GW30306@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    --cc=pedro@codesourcery.com \
    --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