15554Swollman/* Target-dependent code for the GNU Hurd. 250476Speter Copyright 2002, 2003 Free Software Foundation, Inc. 31638Srgrimes 45554Swollman This file is part of GDB. 523381Swosch 65554Swollman This program is free software; you can redistribute it and/or modify 75554Swollman it under the terms of the GNU General Public License as published by 85554Swollman the Free Software Foundation; either version 2 of the License, or 91638Srgrimes (at your option) any later version. 1096937Sgrog 1196937Sgrog This program is distributed in the hope that it will be useful, 1297108Sru but WITHOUT ANY WARRANTY; without even the implied warranty of 1396937Sgrog MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14124750Sru GNU General Public License for more details. 15124750Sru 16124750Sru You should have received a copy of the GNU General Public License 17124750Sru along with this program; if not, write to the Free Software 18124750Sru Foundation, Inc., 59 Temple Place - Suite 330, 19124750Sru Boston, MA 02111-1307, USA. */ 20124750Sru 21124750Sru#include "defs.h" 22124750Sru#include "osabi.h" 23256198Sgjb 24124750Sru#include "i386-tdep.h" 25124750Sru 26124750Srustatic void 27124750Srui386gnu_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) 28124750Sru{ 29124750Sru struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); 3016398Swosch 3196937Sgrog /* GNU uses ELF. */ 3296937Sgrog i386_elf_init_abi (info, gdbarch); 33124750Sru 34124750Sru tdep->jb_pc_offset = 20; /* From <bits/setjmp.h>. */ 35124750Sru} 36124750Sru 37124750Sru/* Provide a prototype to silence -Wmissing-prototypes. */ 38251794Seadlerextern void _initialize_i386gnu_tdep (void); 395549Sjkh 401638Srgrimesvoid 41_initialize_i386gnu_tdep (void) 42{ 43 gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_HURD, i386gnu_init_abi); 44} 45