|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
LINUX tracking [code] If (pcap_loop (pds[myint], pv.pkt_cnt (pcap_handler) ProcessPacket, NULL) "0)
{
If (pv.daemon_flag)
Syslog (LOG_CONS | LOG_DAEMON, "pcap_loop : %s" pcap_geterr (pd));
Else
ErrorMessage ( "pcap_loop : %s" pcap_geterr (pd));
CleanExit (SIGQUIT);
}
The question is : is a function ProcessPacket when entering the circle, I would like to use LINUX operating procedures for tracking, I set up breakpoint ProcessPacket function, but he kept!
Will be how do? [/code] |
LINUX tracking ProcessPacket there is a definition of function, it will not make the original documents into g |
LINUX tracking
| LINUX tracking Printf function for example, the system can also be set up breakpoint, but could not enter debugging,
(Gdb) b printf
Breakpoint 1 at 0x2830 : file cow.c, line 1.
(Gdb) |
LINUX tracking -->
Oh, it was the first time I noticed, thank you. |
LINUX tracking Concern. . .
Could do with the function pointer parameters. |
LINUX tracking This function can be found in the code? ProcessPacket if we can find the following approach.
ProcessPacket together with the code?
{int I=1;
My_log ( "gdb me, i have run this. Pid[%d] ", getpid ());
While (i) (
Usleep (0);
}
}
Operating procedures. This procedure will be stopped from the diary found pid (ps or what)?
Get procedures were pid
Pi
Set var ≥
That could be implemented after the next!
This method commonly used in multi-process debugging! |
Concern. . .
Up
|
| |