search for: pgrab

Displaying 2 results from an estimated 2 matches for "pgrab".

Did you mean: grab
2006 Jun 03
8
dtrace causing sigtrap?
Just to let people know what my big picture is, I''m trying to write a script that will let me run a program, and name a progeny of that program that I want to debug. My script should find the first occurrence of that progeny, and run it until it finishes initializing the runtime linker, but stop it before it runs any shared library startup routines. (Failing that, I''d be okay
2008 Mar 04
0
Determining curthread pointer (ulwp_t) via libproc on i386
...x for 6593259: "libdtrace should prefer pid probes to breakpoints".) For example, if I compile the following code 64-bit snippet, I can get that address from 32-bit or 64-bit executables: -------------------------------------------------------------------------------- if ((Pr = Pgrab(pid, NULL, &gret)) == NULL) { fprintf(stderr, "cannot control process %d\n", pid); exit(1); } if ((lwp = &Pstatus(Pr)->pr_lwp) == NULL) { fprintf(stderr, "Couldn''t grab pr_lwp\n");...