⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tm-altos.h

📁 早期freebsd实现
💻 H
字号:
/* Definitions to make GDB run on an Altos 3068 (m68k running SVR2)   Copyright (C) 1987, 1989, 1991 Free Software Foundation, Inc.This file is part of GDB.This program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe 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 ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  *//* Define BPT_VECTOR if it is different than the default.   This is the vector number used by traps to indicate a breakpoint. */#define BPT_VECTOR 0xe/* Define this if the C compiler puts an underscore at the front   of external names before giving them to the linker.  */#undef NAMES_HAVE_UNDERSCORE/* COFF files don't have long filenames.  */#define COFF_NO_LONG_FILE_NAMES/* Address of end of stack space.  *//*#define STACK_END_ADDR (0xffffff)*/#define STACK_END_ADDR (0x1000000)/* Amount PC must be decremented by after a breakpoint.   On the Altos, the kernel resets the pc to the trap instr */#define DECR_PC_AFTER_BREAK 0/* The only reason this is here is the tm-altos.h reference below.  It   was moved back here from tm-68k.h.  FIXME? */#define SKIP_PROLOGUE(pc)   \{ register int op = read_memory_integer (pc, 2);	\  if (op == 0047126)					\    pc += 4;   /* Skip link #word */			\  else if (op == 0044016)				\    pc += 6;   /* Skip link #long */			\  /* Not sure why branches are here.  */		\  /* From tm-isi.h, tm-altos.h */			\  else if (op == 0060000)				\    pc += 4;   /* Skip bra #word */			\  else if (op == 00600377)				\    pc += 6;   /* skip bra #long */			\  else if ((op & 0177400) == 0060000)			\    pc += 2;   /* skip bra #char */			\}#include "tm-68k.h"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -