TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: Russell Coker
date: 1996-05-04 11:34:24
subject: strace/2

RC>   Does anyone know of a facility for OS/2 similar to 
 RC> the strace program under
 RC> UNIX to list the API calls that a program makes.

 PF> IBM's compiler comes with a profiler that will do this, sort of.

 PF> It comes with a special set of "redirection" libraries 
 PF> called _DOSCAL.LIB, _PMWIN.LIB and _PMGPI.LIB.  This 
 PF> libraries cause an event to be logged in the profiling 
 PF> database when the program runs.

 PF> After your program has terminated,  you can use the 
 PF> profile analysis tools to see which (and when,  if you 
 PF> like) the calls were made.

  That sounds good, it should solve half my problem (determining what
system calls my programs are making).  But it won't allow me to determine
what system calls other peoples programs are making.  In UNIX I often use
strace to determine what programs do so I can tell what is going wrong when
they just give strange error messages and exit...


  Russell Coker


--- Maximus/2 2.02
* Origin: Multi - 61-3-9739-7145 - multi.apana.org.au (3:633/363)
SEEN-BY: 50/99 78/0 620/243 632/348 998 633/154 260 362 363 371 373 374
SEEN-BY: 634/396 635/301 502 503 506 544 639/252 711/409 410 413 430 808 809
SEEN-BY: 711/934 955 712/515 713/888 800/1 7877/2809
@PATH: 633/363 260 371 635/503 50/99 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.