ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] O2 compile option makes it difficult to debug.

From: Anders Broman <anders.broman@xxxxxxxxxxxx>
Date: Mon, 28 Jul 2014 17:28:17 +0000

-----Original Message-----
From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Bill Meier
Sent: den 28 juli 2014 15:24
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] O2 compile option makes it difficult to debug.

>> Hi,
>> It seems like the O2 option interferes with running the debugger. 
>> Would it be better to only use O2 on release builds?
>> I'm not sure how to do that, add nmake -f makefile.nmake release option?

>What I've done is to alter config.nmake slightly to allow the specification of WIRESHARK_ENVIRONMENT_CFLAGS as an environment variable the >value of which is then added to the end of the CFLAGS (after all the other stuff) in config.nmake.
>
>So: I then set WIRESHARK_ENVIRONMENT_CFLAGS to /Od
>
<My experience has been that the "last seen" value for an option specified multiple times is the one that is used by the 'cl' command (at least for >the options I've wanted to override).
>
>If this is considered useful (and not harmful), I can commit the config.nmake change.

Please upload it to gerrit, I think it would be useful.

Bill




___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe