From c9228cfe645063f83bbff04d2839d8e38030edc2 Mon Sep 17 00:00:00 2001 From: "J.T. Conklin" Date: Fri, 7 Oct 1994 01:17:02 +0000 Subject: [PATCH] * nlm/i386.c (flush_i_cache): New function, does nothing. (frame_to_registers, registers_to_frame, set_step_traps, clear_step_traps, do_status): Make non-static. --- gdb/ChangeLog | 47 +++++++++++++++++++++++++++++++++++++++++++++++ gdb/nlm/i386.c | 19 ++++++++++++++----- 2 files changed, 61 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6a82bcf..93d00be 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,50 @@ +Thu Oct 6 18:10:41 1994 J.T. Conklin (jtc@phishhead.cygnus.com) + + * nlm/i386.c (flush_i_cache): New function, does nothing. + (frame_to_registers, registers_to_frame, set_step_traps, + clear_step_traps, do_status): Make non-static. + +Thu Oct 6 12:26:42 1994 Ian Lance Taylor + + * config/mips/tm-mips.h (GDB_TARGET_IS_MIPS64): If not already + defined, define as 0. + (FIX_CALL_DUMMY): Rewrite to remove presumption that host and + target are similar. + * config/mips/tm-idt.h (TARGET_BYTE_ORDER_SELECTABLE): Define. + * config/mips/tm-idtl.h (TARGET_BYTE_ORDER_SELECTABLE): Define. + * config/mips/tm-idt64.h (TARGET_BYTE_ORDER_SELECTABLE): Define. + (BREAKPOINT): Remove definition. + * config/mips/tm-idtl64.h (TARGET_BYTE_ORDER_SELECTABLE): Define. + (BREAKPOINT): Remove definition. + * config/mips/tm-mips64.h (GDB_TARGET_IS_MIPS64): Define with a + value of 1, rather than without a value. + * config/mips/tm-bigmips64.h (GDB_TARGET_IS_MIPS64): Likewise. + * mips-tdep.c: Rewrite uses of GDB_TARGET_IS_MIPS64 to switch at + run time rather than at compile time. + + * remote-mips.c (break_insn): Remove. + (BREAK_INSN, BREAK_INSN_SIZE): Define. + (mips_insert_breakpoint): Use BREAK_INSN, not break_insn. + (mips_remove_breakpoint): Likewise. + + * defs.h: If TARGET_BYTE_ORDER_SELECTABLE is defined by tm.h, + define TARGET_BYTE_ORDER as target_byte_order, and declare + target_byte_order as an extern int, and define BITS_BIG_ENDIAN as + a test of TARGET_BYTE_ORDER. + * top.c: Several additions if TARGET_BYTE_ORDER_SELECTABLE is + defined: + (endianlist, target_byte_order): New variables. + (set_endian, set_endian_big, set_endian_little): New functions. + (show_endian): New function. + (init_cmd_lists): Initialize endianlist. + (init_main): Add commands ``set endian big'', ``set endian + little'', and ``show endian''. + * a29k-pinsn.c: Rewrite uses of TARGET_BYTE_ORDER and + BITS_BIG_ENDIAN to switch at run time rather than at compile time. + * coffread.c, dwarfread.c, findvar.c, mips-tdep.c: Likewise. + * remote-os9k.c, stabsread.c, valarith.c, valprint.c: Likewise. + * values.c: Likewise. + Wed Oct 5 11:41:24 1994 J.T. Conklin (jtc@phishhead.cygnus.com) * nlm/configure.in: ${gdb_host_cpu} defaults to ${host_cpu}. diff --git a/gdb/nlm/i386.c b/gdb/nlm/i386.c index a9333fb..560198e 100644 --- a/gdb/nlm/i386.c +++ b/gdb/nlm/i386.c @@ -11,9 +11,18 @@ #include #include "i386.h" +extern char *mem2hex (void *mem, char *buf, int count, int may_fault); +extern char *hex2mem (char *buf, void *mem, int count, int may_fault); +extern int computeSignal (int exceptionVector); + +void +flush_i_cache() +{ +} + /* Get the registers out of the frame information. */ -static void +void frame_to_registers (frame, regs) struct StackFrame *frame; char *regs; @@ -36,7 +45,7 @@ frame_to_registers (frame, regs) /* Put the registers back into the frame information. */ -static void +void registers_to_frame (regs, frame) char *regs; struct StackFrame *frame; @@ -57,21 +66,21 @@ registers_to_frame (regs, frame) hex2mem (®s[14 * 4 * 2], &frame->ExceptionFS, 4 * 2, 0); } -static void +void set_step_traps (frame) struct StackFrame *frame; { frame->ExceptionSystemFlags |= 0x100; } -static void +void clear_step_traps (frame) struct StackFrame *frame; { frame->ExceptionSystemFlags &= ~0x100; } -static void +void do_status (ptr, frame) char *ptr; struct StackFrame *frame; -- 2.7.4