home *** CD-ROM | disk | FTP | other *** search
- From: steve-t@hpfcso.FC.HP.COM (Steve Taylor)
- Date: Thu, 13 Aug 1992 01:46:02 GMT
- Subject: Re: Question on ss_flags values in the save_state structure
- Message-ID: <7371229@hpfcso.FC.HP.COM>
- Organization: Hewlett-Packard, Fort Collins, CO, USA
- Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!hpscdc!hplextra!hpfcso!steve-t
- Newsgroups: comp.sys.hp
- References: <Bsu2G6.91n@unx.sas.com>
- Lines: 23
-
- In comp.sys.hp, sasebb@zen.unx.sas.com (Edmund Burnette) writes:
-
- > Could someone fill me in on the implications for a debugger of the
- > various values in the ss_flags field of the save_state structure for
- > the HP-PA architecture (HP720)? The structure is read using the
- > appropriate ptrace() calls after an attach or signal. I'm especially
- > interested in what registers are invalid in certain cases (sometimes
- > xdb says R3-R18 are invalid), and where to get the program counter
- > from (sometimes xdb uses ss_gr2 instead of ss_pcoq_head),
-
- if (ss_flags & SS_INSYSCALL)
- { "Values for registers 3 through 18 are invalid."
- pc = ss_gr2 /* RP */
- }
- else pc = ss_pcoq_head.
-
- If you're in the kernel, you have to grab an address (the return pointer)
- back in the user program to matched up with a valid stack unwind descriptor.
- Trying to unwind with a kernel value of pc and the stack unwind info for
- a user program will quickly get you nowhere.
- Regards, Steve taylor
-
- NOT A STATEMENT, OFFICIAL OR OTHERWISE, OF THE HEWLETT-PACKARD COMPANY.
-