Re: [RFC] Debug Methods in GDB Python

Doug Evans
2013-11-19T23:52:34Z

On Fri, Nov 15, 2013 at 5:03 PM, Siva Chandra <sivachandra@google.com> wrote:
> On Fri, Nov 15, 2013 at 4:53 PM, Siva Chandra <sivachandra@google.com> wrote:
>> On Fri, Nov 15, 2013 at 4:05 PM, Doug Evans <dje@google.com> wrote:
>>> I could be wrong but it seemed like errors were handled differently
>>> than in the pretty-printers.
>>> The inconsistency doesn't feel warranted.
>>
>> Yes, there is a difference.
>
> Sorry, sent the last mail without completing my response here.
>
> So, yes there is a difference. But as I explained, I did it that way
> because, in my opinion we should not stop as soon as we hit an error
> when looking up for a match from among the Python implementations as
> there could be a source language implementation. If there were to be
> an error invoking a Python implementation, then that is reported via
> the relevant functions in valarith.c. All other Python errors are
> reported but do not stop GDB from proceeding to evaluate expressions.

Ah.
I can imagine scenarios where I would not want gdb to continue anyway,
though I'm not sure they're important enough to worry about now.