aboutsummaryrefslogtreecommitdiff
path: root/gdb/xm-mips.h
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1991-11-04 23:15:31 +0000
committerPer Bothner <per@bothner.com>1991-11-04 23:15:31 +0000
commitabefb1f107afeef549f30b47d73dd0b4d9cbe08b (patch)
tree71d887f16381f6ee775ccc1e3a3c216edcd50353 /gdb/xm-mips.h
parent6a8687f3c73e4054f225e034a009afb7803db294 (diff)
downloadgdb-abefb1f107afeef549f30b47d73dd0b4d9cbe08b.zip
gdb-abefb1f107afeef549f30b47d73dd0b4d9cbe08b.tar.gz
gdb-abefb1f107afeef549f30b47d73dd0b4d9cbe08b.tar.bz2
* infrun.c: Fixed typo in comment.
* utils.c: All the v*fprintf emulation is now in libiberty, so we can get rid of some junk. * xm-sun3os4.h, xm-sun4os4.h, xconfig/decstation, xconfig/i386sco, xconfig/sun3os4, xconfig/sun4os4: Don`t need HAVE_STRSTR any more. * m68k-pinsn.c (print_insn_arg): Support BB/BW/BL type operands, as used by branch instructions. * gmalloc.c: Fix prototype of memcpy. * elfread.c: Comment out register_addr, since it conflicts with the one in coredep.c. * buildsym.h: Remove extern declarations of two functions that are really static in buildsym.c. * tm-mips.h: Add symbolic names for more registers. * mips-xdep.c (store_inferior_registers): Use new register names. * xm-mips.h: Simplify REGISTER_U_ADDR, since it is now only used for core files, not ptrace. Therefore, the KERNEL_U_ADDR hack is no longer needed. The mapping to ptrace number is now in in mips-xdep.c. * mips-xdep.c: Define REGISTER_PTRACE_ADDR (using the mapping from the old REGISTER_U_ADDR), and use it in {fetch,store}_inferior_registers. * mipsread.c: Rename #include ecoff.h to new name coff-mips.h. * mips-tdep.c (mips_push_dummy_frame, mips_pop_frame): Save/restore FP regs correctly (?). * dbxread.c: Remove duplicate define_symbol and type_synonym_name (these had been previously moved to buildsym.c). Hence, define_symbol becomes extern instead of static. * buildsym.c (read_struct_type): Comment out bogus handling of C++ operator methods. Minor hacking of reading of class contexts. Make define_symbol non-static, so dbxread.c can call it.
Diffstat (limited to 'gdb/xm-mips.h')
-rw-r--r--gdb/xm-mips.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/gdb/xm-mips.h b/gdb/xm-mips.h
index 4b5eb5f..ff2bebf 100644
--- a/gdb/xm-mips.h
+++ b/gdb/xm-mips.h
@@ -27,28 +27,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define SET_STACK_LIMIT_HUGE
-/* This WOULD BE the amount to subtract from u.u_ar0
- to get the offset in the core file of the register values.
- But Mips' ptrace works on regnums, not displacements. So since
- REGISTER_U_ADDR is called for both core files and ptrace, use
- BLOCKEND as a flag: 0 for core files, 1 for ptrace. What a
- kludge. */
+#define KERNEL_U_ADDR 0 /* Not needed. */
-#define KERNEL_U_ADDR (int)reg_ptr /* Magic, causes a zero blockend */
+/* Only used for core files on DECstations. */
#define REGISTER_U_ADDR(addr, blockend, regno) \
- if (blockend == 0) { \
if (regno < 38) addr = (NBPG*UPAGES) + (regno - 38)*sizeof(int);\
- else addr = 0; /* ..somewhere in the pcb */ \
- } else if (regno < 32) addr = regno; \
- else if (regno == PC_REGNUM) addr = 96; \
- else if (regno == 36) addr = 97; \
- else if (regno == HI_REGNUM) addr = 98; \
- else if (regno == LO_REGNUM) addr = 99; \
- else if (regno == FCRCS_REGNUM) addr = 100; \
- else if (regno == FCRIR_REGNUM) addr = 101; \
- else if (regno >= FP0_REGNUM) addr = regno - (FP0_REGNUM-32);\
- else addr = 0;
+ else addr = 0; /* ..somewhere in the pcb */
/* Override copies of {fetch,store}_inferior_registers in infptrace.c. */
#define FETCH_INFERIOR_REGISTERS