![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to write to stdin of another program (program A -> [stdin]program B) | vvaidyan | High Level Programming | 1 | 04-30-2008 10:44 AM |
| multifile c program compilation and execution | alokmishra8 | UNIX for Dummies Questions & Answers | 1 | 02-01-2008 01:05 AM |
| unix command for multifile program execution | alokmishra8 | Linux | 0 | 02-01-2008 12:20 AM |
| execution small C++ program in UNIX | bintaleb | High Level Programming | 5 | 09-26-2007 03:35 AM |
| get stack trace from C program on Solaris 8 | rydahl | Filesystems, Disks and Memory | 4 | 03-23-2007 09:53 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
A program to trace execution of another program
Hi,
I wanted to know if i can write a program using switches and signals, etc to trace execution of other unix program which calls c program internally. If yes how? If not with signals and switches then are there any other methods apart from debugging with gdb/dbx. |
| Forum Sponsor | ||
|
|
|
|||
|
This functionality uis usually predicated on the ptrace (man ptrace) function under unixes. The userspace toolset depends. *BSD has ktrace, linux has strace, and solaris10 has a different method based on dtrace. Older solaris and aix has truss, HP-UX 11+ uses tusc.
|
| Thread Tools | |
| Display Modes | |
|
|