1130803Smarcel/* Target-dependent code for the GNU Hurd.
2130803Smarcel   Copyright 2002, 2003 Free Software Foundation, Inc.
3130803Smarcel
4130803Smarcel   This file is part of GDB.
5130803Smarcel
6130803Smarcel   This program is free software; you can redistribute it and/or modify
7130803Smarcel   it under the terms of the GNU General Public License as published by
8130803Smarcel   the Free Software Foundation; either version 2 of the License, or
9130803Smarcel   (at your option) any later version.
10130803Smarcel
11130803Smarcel   This program is distributed in the hope that it will be useful,
12130803Smarcel   but WITHOUT ANY WARRANTY; without even the implied warranty of
13130803Smarcel   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14130803Smarcel   GNU General Public License for more details.
15130803Smarcel
16130803Smarcel   You should have received a copy of the GNU General Public License
17130803Smarcel   along with this program; if not, write to the Free Software
18130803Smarcel   Foundation, Inc., 59 Temple Place - Suite 330,
19130803Smarcel   Boston, MA 02111-1307, USA.  */
20130803Smarcel
21130803Smarcel#include "defs.h"
22130803Smarcel#include "osabi.h"
23130803Smarcel
24130803Smarcel#include "i386-tdep.h"
25130803Smarcel
26130803Smarcelstatic void
27130803Smarceli386gnu_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
28130803Smarcel{
29130803Smarcel  struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
30130803Smarcel
31130803Smarcel  /* GNU uses ELF.  */
32130803Smarcel  i386_elf_init_abi (info, gdbarch);
33130803Smarcel
34130803Smarcel  tdep->jb_pc_offset = 20;	/* From <bits/setjmp.h>.  */
35130803Smarcel}
36130803Smarcel
37130803Smarcel/* Provide a prototype to silence -Wmissing-prototypes.  */
38130803Smarcelextern void _initialize_i386gnu_tdep (void);
39130803Smarcel
40130803Smarcelvoid
41130803Smarcel_initialize_i386gnu_tdep (void)
42130803Smarcel{
43130803Smarcel  gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_HURD, i386gnu_init_abi);
44130803Smarcel}
45