Wireshark-dev: Re: [Wireshark-dev] using C++, was: Notes from Sharkfest '13
From: Evan Huus <eapache@xxxxxxxxx>
Date: Tue, 25 Jun 2013 15:56:41 -0400
On Tue, Jun 25, 2013 at 12:13 PM, Jeff Morriss
<jeff.morriss.ws@xxxxxxxxx> wrote:
> On 06/21/13 02:08, Dirk Jagdmann wrote:
>>>
>>> C++. It snuck in with Qt. Should we allow C++ in the rest of the code or
>>> at least use C++ compilation everywhere?
>>
>> Another advantage would be that we can use real C++ exceptions.
>
>
> What would be the advantage of using C++ exceptions?

Less code for us to manage, and possibly (though not necessarily) a
little bit faster.

> (I sort of like the fact that if I want to debug a malformed packet I can
> set a breakpoint at except_throw() and go straight to where the problem
> happened.  Maybe something similar is possible with C++ but I've never spent
> much time debugging C++ apps...)

In gdb it is simply "catch throw", don't know about any other
debuggers people might use.