From: Tom Tromey <tromey@redhat.com>
To: Phil Muldoon <pmuldoon@redhat.com>
Cc: "gdb-patches\@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [patch][python] 0 of 5 - Frame filters and Wrappers
Date: Mon, 03 Dec 2012 21:34:00 -0000 [thread overview]
Message-ID: <87k3syvmzd.fsf@fleche.redhat.com> (raw)
In-Reply-To: <50B8C313.2070404@redhat.com> (Phil Muldoon's message of "Fri, 30 Nov 2012 14:30:43 +0000")
>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:
Phil> * Frame filters on individual MI commands are turned off with
Phil> --no-frame-filters. With the "bt" command, they are turned off with
Phil> the raw sub-command (e,g "bt raw"). This is inconsistent at the
Phil> moment, and I expect it will be resolved in review.
What is it that is inconsistent?
Phil> * Python errors when printing?
Phil> Right now if there is an error encountered, the frame printing is
Phil> aborted and GDB falls back to its own inbuilt printing routines.
Phil> This is up for debate, and I hope it sparks a discussion. If the
Phil> GDB Python API encounters an error while printing a backtrace,
Phil> should it:
Phil> - Abandon the whole backtrace, and have the existing GDB code
Phil> print it;
Phil> - Abandon that frame, and continue on;
Considering that frame-printing is lazy, I think it would be weird to
try to abandon the whole backtrace and start over. E.g., suppose the
error occurred after already displaying the first 5 frames -- starting
over would show pretty confusing output.
Whether to keep going, I am not sure.
When printing an error from a Python printer, it would be very nice for
gdb to tell the user how to disable that particular printer. I think
this ought to be pretty easy.
Tom
next prev parent reply other threads:[~2012-12-03 21:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-30 14:30 Phil Muldoon
2012-12-03 21:34 ` Tom Tromey [this message]
2012-12-05 12:31 ` Phil Muldoon
2012-12-05 17:36 ` Tom Tromey
2013-03-11 22:12 Phil Muldoon
2013-04-22 15:54 Phil Muldoon
2013-05-06 8:22 Phil Muldoon
2013-05-10 10:57 ` Phil Muldoon
2013-05-16 11:50 ` Joel Brobecker
2013-05-16 13:15 ` Phil Muldoon
2013-05-16 13:32 ` Tom Tromey
2013-05-16 13:35 ` Phil Muldoon
2013-07-17 20:27 ` Tom Tromey
2013-05-16 13:27 ` 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=87k3syvmzd.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