Re: Cleanups and Exception handlers

Doug Evans <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CADPb22SGAWy101PnBR2abWxq=L5r2t8O=FomuhY_xCW+U5_S3A@mail.gmail.com>
On Wed, May 1, 2013 at 12:44 PM, Jan Kratochvil
<[email protected]> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.