Home page logo

wireshark logo Wireshark mailing list archives

Re: using C++, was: Notes from Sharkfest '13
From: Evan Huus <eapache () gmail com>
Date: Tue, 25 Jun 2013 15:56:41 -0400

On Tue, Jun 25, 2013 at 12:13 PM, Jeff Morriss
<jeff.morriss.ws () gmail com> 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.
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]