Why should I use libtool --mode == execute gdb wireshark to enable wirehark debugging

I try to look at the Wireshark source code to understand the analysis protocol, but I found that when I just use it gdb ./wireshark, when I press Ctrl+ Cand set a breakpoint, then enter C, the process freezes. I want to know what libtool does to make GDB debugging possible.

I already read man libtool, and he says that libtool is a tool that simplifies the use of all types .aor .ousing a simple interface, but I donโ€™t know what the key should make gdb wiresharkwith libtool possibly.

+5
source share
1 answer

libtool , .

, , ( ). , libtool , (.libs) script , . script , .

, , script gdb! , gdb, , :

$ libtool --mode=execute gdb ./wireshark

, , :

$ libtool --mode=execute echo ./wireshark

.libs : libtool .

+5

All Articles