I followed standard procedure , autogen.sh , configure then make .. And somehow executable was not produced instead a shell script was made up , that's why getting this error below in gdb :- I want to make executable , in order to debug via gdb .. what i am missing? [[email protected] wireshark-1.7.1]# gdb ./wireshark GNU gdb Fedora (6.8-1.fc9) Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"...
asked 18 Jun '12, 02:45 yogeshg edited 18 Jun '12, 02:47 |
One Answer:
Run wireshark through libtool, like this:
see here: http://wiki.wireshark.org/Development/Tips Regards answered 18 Jun '12, 03:43 Kurt Knochner ♦ You are saviour! (18 Jun '12, 03:50) yogeshg |
What is the output of these commands?
Regards
Kurt
/root/wireshark/wireshark-1.7.1/wireshark: Bourne shell script text executable
and
[[email protected] wireshark-1.7.1]# ldd /root/wireshark/wireshark-1.7.1/wireshark not a dynamic executable
thanks.
O.K. you see, why you can't debug that? ;-)
It's just a wrapper script for the wireshark binary, which is in
.libs/lt-wireshark
. Run the script like this and you will see the path on your system:So, run gdb:
or add gdb to the wrapper script.
UPDATE: or even better: see answer below
I ain't enough comfortable with shell scripting, moreover i was interested in seeing what and which functions get called. Thanks anyways