Cleanups and Exception handlers

Doug Evans dje@google.com
Sat May 4 17:52:00 GMT 2013


On Wed, May 1, 2013 at 12:44 PM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> On Wed, 01 May 2013 20:46:10 +0200, Phil Muldoon wrote:
>> > It seemed to me that there were too many TRY_CATCH blocks even in cases where
>> > nothing can throw an exception.
>>
>> This is because most (though I have no audited all of them) calls to
>> ui_out_* use *_filtered function calls (at least when the output is
>> directed to the CLI).  These can be interrupted from GDB and Python
>> has to handle the resulting GDB generated keyboard interruption
>> exception.  It's a massive pain in the neck. ;)
>
> Oops, OK.

A comment in the code explaining why things are the way they are
would be most welcome.



More information about the Gdb mailing list