diff options
author | K. Richard Pixley <rich@cygnus> | 1992-10-28 07:08:52 +0000 |
---|---|---|
committer | K. Richard Pixley <rich@cygnus> | 1992-10-28 07:08:52 +0000 |
commit | b1de302a446a95a719c835ddf02d833f23c1e4af (patch) | |
tree | ddae019cb3596d1623a08425b77a112d998422da /gdb/nm-hp300bsd.h | |
parent | 7aae0974c21c5f0b22a0827b12bfedecec19cbaf (diff) | |
download | gdb-b1de302a446a95a719c835ddf02d833f23c1e4af.zip gdb-b1de302a446a95a719c835ddf02d833f23c1e4af.tar.gz gdb-b1de302a446a95a719c835ddf02d833f23c1e4af.tar.bz2 |
hp300 native support
Diffstat (limited to 'gdb/nm-hp300bsd.h')
-rw-r--r-- | gdb/nm-hp300bsd.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/gdb/nm-hp300bsd.h b/gdb/nm-hp300bsd.h new file mode 100644 index 0000000..398f36d --- /dev/null +++ b/gdb/nm-hp300bsd.h @@ -0,0 +1,43 @@ +/* Parameters for Hewlett-Packard 9000/300 native support under bsd. + Copyright 1986, 1987, 1989, 1991, 1992 Free Software Foundation, Inc. + +This file is part of GDB. + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +/* This is a piece of magic that is given a register number REGNO + and as BLOCKEND the address in the system of the end of the user structure + and stores in ADDR the address in the kernel or core dump + of that register. */ + +#define REGISTER_U_ADDR(addr, blockend, regno) \ +{ \ + if (regno < PS_REGNUM) \ + addr = (int) &((struct frame *)(blockend))->f_regs[regno]; \ + else if (regno == PS_REGNUM) \ + addr = (int) &((struct frame *)(blockend))->f_stackadj; \ + else if (regno == PC_REGNUM) \ + addr = (int) &((struct frame *)(blockend))->f_pc; \ + else if (regno < FPC_REGNUM) \ + addr = (int) \ + &((struct user *)0)->u_pcb.pcb_fpregs.fpf_regs[((regno)-FP0_REGNUM)*3];\ + else if (regno == FPC_REGNUM) \ + addr = (int) &((struct user *)0)->u_pcb.pcb_fpregs.fpf_fpcr; \ + else if (regno == FPS_REGNUM) \ + addr = (int) &((struct user *)0)->u_pcb.pcb_fpregs.fpf_fpsr; \ + else \ + addr = (int) &((struct user *)0)->u_pcb.pcb_fpregs.fpf_fpiar; \ +} + |