First, you be familiar with GDB to use it
efficiently.
Refer this link, to get more details about
GDB;
Then, normally core file are generated from the
directory when U
run ur binary, ie ethereal. And also U can find
it using find command.
Moreover, file command would help U to find who
dumped that core file.
Ex:
$ file
core core: core
file from 'ethereal' - received SIGABRT
Then, U can invoke GDB as
$gdb ethereal core
Then you can analyse more using "bt" or "where"
command. Also you
can print out symbols that caused the core
file.
NOTE:
Also, you can set breakpoints where you added
extra lines to ethereal source
and run ethereal under GDB. Get familiar with
GDB, you can play a lot.
HTH,
--
Senthil Prabu.S
----- Original Message -----
Sent: Monday, March 21, 2005 10:09
AM
Subject: [Ethereal-dev] Debugging
ethereal
Hello list,
I am using ethereal on linux. I have
added some features to ethereal and I want
to debug the ethereal in
GDB.
1. Ethereal is crashing in some function
and giving segmentation fault. I want to know
at which part of the code ehereal crashes
for that I want "core" file generated.
2. Where does the core file will be present when
etereal gives segmentation fault
in linux.
Regards
harsha
_______________________________________________ Ethereal-dev mailing
list Ethereal-dev@xxxxxxxxxxxx http://www.ethereal.com/mailman/listinfo/ethereal-dev
|