Sena Technologies, Inc.
__________________________________________________________________________
__________________________________________________________________________________________-
- 13/15 -
113 root S /bin/linkupchecker -c 1
118 root R /etc/rc.d/rc2.d/S53sts800mand start
126 root S /etc/rc.d/rc2.d/S53sts800mand start
128 root S /usr/sbin/cron
129 root S -bash
523 root S ss.port 1
524 root S ss.port 1
525 root S ss.port 1
526 root S ss.port 1
527 root S ss.port 1
529 root S ss.tcp 1
530 root S ss.tcp 1
532 root S ss.tcp 1
533 root S ss.tcp 1
534 root S ss.tcp 1
535 root R ps -ef
Step 6. Run sample filter program using GDB.
# /mnt/flash/bin/gdb data_conversion
Step 7. After running GDB, user can use GDB commands to control it.
In this example, first user should set argument for sample filter program as follows,
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "powerpc-hardhat-linux"...
(gdb) set args 1
Argument ‘1’means that this sample filter program is run for port #1.
Step 8. And then set breakpoint at the proper positions to stop programrun.
For example, user can set break point on *e2s_thread function to check what is entering
from tcp port.
(gdb) break *e2s_thread
Breakpoint 1 at 0x10003054: file data_conversion.c, line 255.
And then run program with ‘r’command
(gdb) r
Starting program: /usr2/data_conversion 1
[New Thread 539 (manager thread)]
[New Thread 538 (initial thread)]
[New Thread 540]
[New Thread 541]
[Switching to Thread 541]
Breakpoint 1, e2s_thread (arg=0x0) at data_conversion.c:255
255 {
(gdb)
Step 9. After for a while, programwill be stopped at the entry point of *e2s_thread function.
User can run next step by entering ‘n’(next) command.