9a13e99e20
* m68k-tdep.c (m68k_saved_pc_after_call): Get rid of GDB_TARGET_IS_SUN3. Use more general SYSCALL_TRAP macro. * config/m68k/m68klynx.mh (NATDEPFILES): Remove exec.o (it's already in TDEPFILES). * config/m68k/tm-m68k.h (SAVED_PC_AFTER_CALL): Use m68k_saved_pc_after_call. * Remove all Sun3 specific stuff. * (FIX_CALL_DUMMY): Cast arg to bfd_putb32 to unsigned char *. * config/m68k/tm-m68klynx.h: Define SYSCALL_TRAP as trap #10. Disable REMOTE_BREAKPOINT mechanism. * config/m68k/tm-sun3.h: Get rid of GDB_TARGET_IS_SUN3. * Protect from multiple includion. * Move Sun3 specific stuff from tm-m68k.h to here. * Define SYSCALL_TRAP as trap #0. * Remove def of SAVED_PC_AFTER_CALL (now in tm-m68k.h). * gdbserver/low-lynx.c: Redo all register store/fetch stuff to make it portable for 386 and 68k.
40 lines
1.3 KiB
C
40 lines
1.3 KiB
C
/* Macro definitions for Motorola 680x0 running under LynxOS.
|
|
Copyright 1993 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. */
|
|
|
|
#ifndef TM_M68KLYNX_H
|
|
#define TM_M68KLYNX_H
|
|
|
|
/* If PC-2 contains this instruction, then we know what we are in a system
|
|
call stub, and the return PC is is at SP+4, instead of SP. */
|
|
|
|
#define SYSCALL_TRAP 0x4e4a /* trap #10 */
|
|
#define SYSCALL_TRAP_OFFSET 2 /* PC is after trap instruction */
|
|
|
|
/* Use the generic 68k definitions. */
|
|
|
|
#include "m68k/tm-m68k.h"
|
|
|
|
/* Disable dumbshit alternate breakpoint mechanism needed by 68k stub. */
|
|
#undef REMOTE_BREAKPOINT
|
|
|
|
/* Include COFF shared library support. */
|
|
|
|
#include "coff-solib.h"
|
|
|
|
#endif /* TM_M68KLYNX_H */
|