This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit Eliminate t_insn
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 30 Oct 2004 17:12:13 -0400
- Subject: [commit Eliminate t_insn
ULONGEST is bigger
committed,
Andrew
2004-10-30 Andrew Cagney <cagney@gnu.org>
* config/mips/tm-mips.h (t_insn): Delete.
* mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
Replace t_insn with ULONGEST.
Index: mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.350
diff -p -u -r1.350 mips-tdep.c
--- mips-tdep.c 30 Oct 2004 21:16:09 -0000 1.350
+++ mips-tdep.c 30 Oct 2004 22:09:41 -0000
@@ -847,7 +847,7 @@ mips_write_pc (CORE_ADDR pc, ptid_t ptid
/* Fetch and return instruction from the specified location. If the PC
is odd, assume it's a MIPS16 instruction; otherwise MIPS32. */
-static t_inst
+static ULONGEST
mips_fetch_instruction (CORE_ADDR addr)
{
char buf[MIPS_INSN32_SIZE];
@@ -4506,7 +4506,7 @@ mips_skip_trampoline_code (CORE_ADDR pc)
address from those two instructions. */
CORE_ADDR target_pc = read_signed_register (2);
- t_inst inst;
+ ULONGEST inst;
int i;
/* See if the name of the target function is __fn_stub_*. */
Index: config/mips/tm-mips.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-mips.h,v
retrieving revision 1.65
diff -p -u -r1.65 tm-mips.h
--- config/mips/tm-mips.h 30 Oct 2004 21:16:10 -0000 1.65
+++ config/mips/tm-mips.h 30 Oct 2004 22:09:41 -0000
@@ -84,7 +84,4 @@ typedef struct mips_extra_func_info
#define DEPRECATED_IGNORE_HELPER_CALL(pc) mips_ignore_helper (pc)
extern int mips_ignore_helper (CORE_ADDR pc);
-/* Definitions and declarations used by mips-tdep.c and remote-mips.c */
-typedef unsigned long t_inst; /* Integer big enough to hold an instruction */
-
#endif /* TM_MIPS_H */