This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cleanups and Exception handlers


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]