From: Tom Tromey <tromey@redhat.com>
To: Phil Muldoon <pmuldoon@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: RFC: fix PR 14386
Date: Mon, 06 Aug 2012 18:43:00 -0000 [thread overview]
Message-ID: <87ipcvkitj.fsf@fleche.redhat.com> (raw)
In-Reply-To: <501F9173.2040400@redhat.com> (Phil Muldoon's message of "Mon, 06 Aug 2012 10:42:11 +0100")
>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:
Phil> It seems we wind-up printing two errors if the value returned to
Phil> "children" is not an iterator. The "type error" exception that is
Phil> printed with gdbpy_print_stack, and then the explicit error call we call
Phil> right after. Not sure if this is because of an MI detail needing an
Phil> "error" call, but it seems counter-intuitive to print two error
Phil> messages for one exception. Maybe in a future patch we could extract
Phil> the exception message from the exception and pass that to the GDB
Phil> error call, or skip the error call completely.
There's PR 12174, which is about this. The basic problem is that the
exception conversion process is not loss-less. This is fixable by
adding a bit of state to gdb exceptions, and a little hacking here and
there; but nobody has attempted it comprehensively yet.
Tom
next prev parent reply other threads:[~2012-08-06 18:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-01 18:11 Tom Tromey
2012-08-01 19:29 ` Tom Tromey
2012-08-01 20:31 ` Pedro Alves
2012-08-06 9:42 ` Phil Muldoon
2012-08-06 18:43 ` Tom Tromey [this message]
2012-08-06 19:16 ` Tom Tromey
2012-08-13 18:17 ` Joel Brobecker
2012-08-13 19:44 ` Tom Tromey
2012-08-15 19:50 ` Joel Brobecker
2012-08-16 18:22 ` Tom Tromey
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=87ipcvkitj.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=pmuldoon@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