home *** CD-ROM | disk | FTP | other *** search
- 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
- From: R.S.Jones@qmw.ac.uk (Robert S. Jones)
- Newsgroups: comp.unix.sys5.r4
- Subject: Re: defines of FAULTS in solaris
- Message-ID: <1993Jan28.091950.7309@dcs.qmw.ac.uk>
- Date: 28 Jan 93 09:19:50 GMT
- References: <1993Jan22.090028.25843@cse.iitb.ernet.in> <16609@auspex-gw.auspex.com> <1993Jan25.170035.16928@icl.se>
- Sender: usenet@dcs.qmw.ac.uk (Usenet News System)
- Organization: Queen Mary & Westfield College (London)
- Lines: 51
- X-Xxmessage-Id: <A78D554EF0010882@rsj.css.qmw.ac.uk>
- X-Xxdate: Thu, 28 Jan 93 09:18:06 GMT
- Nntp-Posting-Host: rsj.css.qmw.ac.uk
- X-Useragent: Nuntius v1.1.1d17
-
- In article <1993Jan22.090028.25843@cse.iitb.ernet.in> J K Jacob Kurien,
- jacob@cse.iitb.ernet.in writes:
- > Hi,
- >
- > I'm trying to put gdb (gnu's debugger) on top of ICL's drs6000
- > sparc multiprocessor. The operating system which we have sysVr4. However
- > the list of hardware faults is not listed in /usr/include/sys/fault.h.
- > There is just a pointer to /usr/include/sys/sparc/trap.h which does not
- > contain the definition for the faults
- >
- > FLTILL illegal instruction
- > FLTPRIV privileged instruction
- > FLTBPT breakpoint trap
- > FLTTRACE trace trap
- > FLTACCESS memory access fault
- > FLTBOUNDS memory
- > FLTIOVF integer overflow
- > FLTIZDIV integer zero divide
- > FLTFPE floating-point exception
- > FLTSTACK unrecoverable stack fault
- > FLTPAGE recoverable page fault
-
- Funny, I've just been trying to do the same thing. I sort of fudged this bit,
- but I'll have a go with the values Guy Harris provided. My real problem came
- earlier in the game, in sparc-tdep.c. Again Sun/gdb's idea of the regset.h
- definitions and ICL's seem to diverge somewhat [ :-(( ].
-
- I found almost what I needed in /usr/include/sys/sparc/regset.h, and so I
- stuck this is sparc-tdep.c
-
- #include <sys/sparc/regset.h>
- #define R_nPC R_NPC
- #define R_I7 I7_REGNUM
- #define prgreg_t greg_t
- #define pr_fr fpu_fr
- #define pr_regs fpu_regs
- #define pr_fsr fpu_fsr
-
- BUT, when I try and debug anything with gdb, I find I can run it, but
- backtracing the stack doesn't work at all. I suspect that I'm not pointing at
- the registers properly - but I didn't really have much idea what I ought to be
- doing when I set up the #define's. I *THINK* the nPC to NPC one is OK, and
- maybe even the R_I7 one (but it seems to me that should be a gdb definition
- anyway, and not a /usr/include one at all. Can anyone come up with some
- definitive kludges to replace this mess, please?
-
- Thanks. Bob Jones
- --
- Robert S. Jones -- Computer Systems Manager | The opinions stated above are
- Queen Mary & Westfield College, London U.K. | not necessarily .. no, dammit
- Vox: +44 71 975 5326 Fax: +44 71 775 3221 | ... these are the facts!! :-)
-