wireshark-dev October 2010 archive
Main Archive Page > Month Archives  > wireshark-dev archives
wireshark-dev: [Wireshark-dev] When I use gdb to debug wireshark

[Wireshark-dev] When I use gdb to debug wireshark,error occurs

From: 증웹 <liukunmeister_at_nospam>
Date: Fri Oct 22 2010 - 10:46:42 GMT
To: Wireshark Mailing List <wireshark-dev@wireshark.org>

I want to use gdb to debug wireshark .

First ,I download the source code of wireshark to install.And I use
"make CFLAGS="-g -O0"" to create symbols to be used by gdb.

And when I want to set breakpoint at packet-http.c:dissect_http .I use
command "b packet-http.c:dissect_http",however gdb print "No source file
named packet-http.c"

I have create the symbols but why I can't debug that file?

By the way,when set breakpoint "b file.c 100",I success. I think if the
file path influence the gdb.packet-http.c at wireshark/epan/dissectors
But file.c at wireshark/

What should I do to debug packet-http.c:dissect_http by using gdb ?

Thank you very much
___________________________________________________________________________
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