home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / sys5 / r4 / 1433 < prev    next >
Encoding:
Text File  |  1993-01-28  |  3.0 KB  |  67 lines

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!zaphod.mps.ohio-state.edu!howland.reston.ans.net!spool.mu.edu!agate!doc.ic.ac.uk!warwick!uknet!qmw-dcs!rsj.css.qmw.ac.uk!R.S.Jones
  2. From: R.S.Jones@qmw.ac.uk (Robert S. Jones)
  3. Newsgroups: comp.unix.sys5.r4
  4. Subject: Re: defines of FAULTS in solaris
  5. Message-ID: <1993Jan28.091950.7309@dcs.qmw.ac.uk>
  6. Date: 28 Jan 93 09:19:50 GMT
  7. References: <1993Jan22.090028.25843@cse.iitb.ernet.in> <16609@auspex-gw.auspex.com> <1993Jan25.170035.16928@icl.se>
  8. Sender: usenet@dcs.qmw.ac.uk (Usenet News System)
  9. Organization: Queen Mary & Westfield College (London)
  10. Lines: 51
  11. X-Xxmessage-Id: <A78D554EF0010882@rsj.css.qmw.ac.uk>
  12. X-Xxdate: Thu, 28 Jan 93 09:18:06 GMT
  13. Nntp-Posting-Host: rsj.css.qmw.ac.uk
  14. X-Useragent: Nuntius v1.1.1d17
  15.  
  16. In article <1993Jan22.090028.25843@cse.iitb.ernet.in> J K Jacob Kurien,
  17. jacob@cse.iitb.ernet.in writes:
  18. > Hi,
  19. > I'm trying to put gdb (gnu's debugger) on top of ICL's drs6000
  20. > sparc multiprocessor. The operating system which we have sysVr4. However
  21. > the list of hardware faults is not listed in /usr/include/sys/fault.h. 
  22. > There is just a pointer to /usr/include/sys/sparc/trap.h which does not 
  23. > contain the definition for the faults  
  24. >                FLTILL        illegal instruction
  25. >                FLTPRIV       privileged instruction
  26. >                FLTBPT        breakpoint trap
  27. >                FLTTRACE      trace trap
  28. >                FLTACCESS     memory access fault
  29. >                FLTBOUNDS     memory
  30. >                FLTIOVF       integer overflow
  31. >                FLTIZDIV      integer zero divide
  32. >                FLTFPE        floating-point exception
  33. >                FLTSTACK      unrecoverable stack fault
  34. >                FLTPAGE       recoverable page fault
  35.  
  36. Funny, I've just been trying to do the same thing. I sort of fudged this bit,
  37. but I'll have a go with the values Guy Harris provided. My real problem came
  38. earlier in the game, in sparc-tdep.c. Again Sun/gdb's idea of the regset.h
  39. definitions and ICL's seem to diverge somewhat [ :-(( ].
  40.  
  41. I found almost what I needed in /usr/include/sys/sparc/regset.h, and so I
  42. stuck this is sparc-tdep.c
  43.  
  44. #include <sys/sparc/regset.h>
  45. #define R_nPC R_NPC
  46. #define R_I7 I7_REGNUM
  47. #define prgreg_t greg_t
  48. #define pr_fr fpu_fr
  49. #define pr_regs fpu_regs
  50. #define pr_fsr fpu_fsr
  51.  
  52. BUT, when I try and debug anything with gdb, I find I can run it, but
  53. backtracing the stack doesn't work at all. I suspect that I'm not pointing at
  54. the registers properly - but I didn't really have much idea what I ought to be
  55. doing when I set up the #define's. I *THINK* the nPC to NPC one is OK, and
  56. maybe even the R_I7 one (but it seems to me that should be a gdb definition
  57. anyway, and not a /usr/include one at all. Can anyone come up with some
  58. definitive kludges to replace this mess, please?
  59.  
  60.           Thanks.          Bob Jones
  61. --
  62. Robert S. Jones -- Computer Systems Manager | The opinions stated above are
  63. Queen Mary & Westfield College, London U.K. | not necessarily .. no, dammit
  64. Vox: +44 71 975 5326   Fax: +44 71 775 3221 | ... these are the facts!! :-)
  65.