home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / hp / 9228 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  1.4 KB

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