Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-dev: [Wireshark-dev] How to turn off optimization while compiling Wireshark on linux?

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: siri m <svu004@xxxxxxxxx>
Date: Tue, 7 Apr 2009 11:54:18 -0700

Hi all,

I want to turn off the optimization and enable the debugging symbols
while compiling wireshark;
I have tried the following, but with no luck. Can someone point me in
the right direction?

I obtained the wireshark tar file; untarred it and ran the following:
1. ./autogen.sh
2. Set the environment flags:
CXXFLAGS=-g -O0
./configure
3. make

I then, tried to start wireshark from the epan/dissectors location
using ddd with the compiled wireshark. However, whenever I try to open
the source file of say either existing dissectors or our custom
plugins, it always complains about Line 1 of "packet-xxx.c" is at
address 0x31f8d70 <check_mask> but contains no code.
Also, for some of the values, it says, "optimized out".

Can someone point me in the right direction to debug wireshark
dissectors/plugins?  I am assuming that the above is because of the
optimization flag. Are there any other flags that I need to set?

Thanks in advance,

  • Follow-Ups:
    • Re: [Wireshark-dev] How to turn off optimization while compiling Wireshark on linux?
      • From: Guy Harris
  • Prev by Date: Re: [Wireshark-dev] Wrong FCS in 802.11 capture
  • Next by Date: Re: [Wireshark-dev] How to turn off optimization while compiling Wireshark on linux?
  • Previous by thread: Re: [Wireshark-dev] How can I re-use definition of hf[]?
  • Next by thread: Re: [Wireshark-dev] How to turn off optimization while compiling Wireshark on linux?
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation