1820249 Members
2592 Online
109622 Solutions
New Discussion

Request for Help

 
Bharath Thodla
Occasional Contributor

Request for Help

Hi Everyone,

I am trying to create a program that could track the program counter of a process. I have read that the setjmp() API in HP-UX can be used to save the program counter of a executing process/thread. Can someone kindly give me the following examples.

1.Retrieving the thread details of a particular process ID.

2.Retrieving the program counter value for a particular thread in a process.

Thanks and Regards,
Bharath Thodla
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Request for Help

What are you really trying to do?
Are you doing this for PA-RISC or Integrity?

None of this info is readily available.

About the only way to get it is to download a the source of gdb and reverse engineer it.
http://www.hp.com/go/wdb

You may also sign up for DSPP and ask:
http://www.hp.com/go/dspp

If you are on IPF, the next release of the compiler (A.06.15) will support:
#include
void *r1 = _Asm_mov_from_ip();