On Solaris, it's easy to generate a stackdump of a program. I just execute pstack <pid>. Is there a similar way to do this on HP-UX? I want to write a script that generates period stackdumps of a C++ process without killing the process.
Thanks!
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click
here
I couldn't get "getcore <pid>" to work. Are you talking about the getcore command in gdb? When I execute `help getcore` in gdb, it tells me the correct usage of getcore is: getcore [ <packcore_dir> ]. It doesn't look like it takes pid as an argument. Is there another getcore command that you're referring to?