From: Nick Roberts <nickrob@snap.net.nz>
To: Vladimir Prus <vladimir@codesourcery.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] Rethrow exception properly.
Date: Sun, 27 Jan 2008 07:53:00 -0000 [thread overview]
Message-ID: <18331.59896.89303.672856@kahikatea.snap.net.nz> (raw)
In-Reply-To: <200801262257.36197.vladimir@codesourcery.com>
> Such rethrowing is just wrong -- if we fully delegate handling of
> the error to our caller, we should just throw the original exception.
>
> The attached patch switches to using throw_exception and gets us
> back to sane MI error message. OK?
There is still the anomaly between break_command_really returning int and
gdb_breakpoint returning enum gdb_rc. Currently it looks like the return value
of break_command_1 is not used, so this could presumably be void. If the
exception handling is all done in break_command_really perhaps we don't need
the return value of gdb_breakpoint.
>...
> +proc test_error {} {
> + global mi_gdb_prompt
> +
> + mi_gdb_test "-break-insert function_that_does_not_exit" \
function_that_does_not_exist
> + ".*\\^error,msg=\"Function \\\\\"function_that_does_not_exit\\\\\" not defined.\"" \
function_that_does_not_exist
> + "breakpoint at nonexistent function"
> +}
>...
--
Nick http://www.inet.net.nz/~nickrob
next prev parent reply other threads:[~2008-01-27 2:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-27 2:19 Vladimir Prus
2008-01-27 7:53 ` Nick Roberts [this message]
2008-01-27 14:15 ` Vladimir Prus
2008-01-31 22:21 ` Daniel Jacobowitz
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=18331.59896.89303.672856@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=gdb-patches@sources.redhat.com \
--cc=vladimir@codesourcery.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