119370Spst/* Host support for i386. 219370Spst Copyright 1986, 1987, 1989, 1992 Free Software Foundation, Inc. 319370Spst Changes for 80386 by Pace Willisson (pace@prep.ai.mit.edu), July 1988. 419370Spst 598944Sobrien This file is part of GDB. 619370Spst 798944Sobrien This program is free software; you can redistribute it and/or modify 898944Sobrien it under the terms of the GNU General Public License as published by 998944Sobrien the Free Software Foundation; either version 2 of the License, or 1098944Sobrien (at your option) any later version. 1119370Spst 1298944Sobrien This program is distributed in the hope that it will be useful, 1398944Sobrien but WITHOUT ANY WARRANTY; without even the implied warranty of 1498944Sobrien MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1598944Sobrien GNU General Public License for more details. 1619370Spst 1798944Sobrien You should have received a copy of the GNU General Public License 1898944Sobrien along with this program; if not, write to the Free Software 1998944Sobrien Foundation, Inc., 59 Temple Place - Suite 330, 2098944Sobrien Boston, MA 02111-1307, USA. */ 2119370Spst 2219370Spst/* I'm running gdb 3.4 under 386/ix 2.0.2, which is a derivative of AT&T's 2398944Sobrien Sys V/386 3.2. 2419370Spst 2598944Sobrien On some machines, gdb crashes when it's starting up while calling the 2698944Sobrien vendor's termio tgetent() routine. It always works when run under 2798944Sobrien itself (actually, under 3.2, it's not an infinitely recursive bug.) 2898944Sobrien After some poking around, it appears that depending on the environment 2998944Sobrien size, or whether you're running YP, or the phase of the moon or something, 3098944Sobrien the stack is not always long-aligned when main() is called, and tgetent() 3198944Sobrien takes strong offense at that. On some machines this bug never appears, but 3298944Sobrien on those where it does, it occurs quite reliably. */ 3319370Spst#define ALIGN_STACK_ON_STARTUP 3419370Spst 3519370Spst/* define USG if you are using sys5 /usr/include's */ 3619370Spst#define USG 3719370Spst 3819370Spst#define HAVE_TERMIO 3919370Spst 4019370Spst/* This is the amount to subtract from u.u_ar0 4119370Spst to get the offset in the core file of the register values. */ 4219370Spst 4319370Spst#define KERNEL_U_ADDR 0xe0000000 44