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

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

From: Christopher Maynard <Chris.Maynard_at_nospam>
Date: Sat Oct 23 2010 - 02:11:34 GMT
To: wireshark-dev@wireshark.org

刘昆 <liukunmeister@...> writes:

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

dissect_http is in libwireshark.so, not wireshark. After the message indicating
"No source file named packet-http.c", you should have also seen a message asking
you:
    Make breakpoint pending on future shared library load? (y or [n])

If you choose 'y', then your breakpoint will be pending until the library is
loaded and the function resolved. When you type "run", you should then see
messages along the lines of:
    Breakpoint 1 at 0x<some address>: file packet-http.c, line 2194.
    Pending breakpoint "packet-http.c:dissect_http" resolved

The breakpoint is now set and execution should stop at dissect_http() whenever
that function is called.

___________________________________________________________________________
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