GDB (API)
/home/stan/gdb/src/gdb/i386gnu-tdep.c
Go to the documentation of this file.
00001 /* Target-dependent code for the GNU Hurd.
00002    Copyright (C) 2002-2013 Free Software Foundation, Inc.
00003 
00004    This file is part of GDB.
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 3 of the License, or
00009    (at your option) any later version.
00010 
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License
00017    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00018 
00019 #include "defs.h"
00020 #include "osabi.h"
00021 #include "solib-svr4.h"
00022 
00023 #include "i386-tdep.h"
00024 
00025 static void
00026 i386gnu_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
00027 {
00028   struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
00029 
00030   /* GNU uses ELF.  */
00031   i386_elf_init_abi (info, gdbarch);
00032 
00033   set_solib_svr4_fetch_link_map_offsets
00034     (gdbarch, svr4_ilp32_fetch_link_map_offsets);
00035 
00036   tdep->jb_pc_offset = 20;      /* From <bits/setjmp.h>.  */
00037 }
00038 
00039 /* Provide a prototype to silence -Wmissing-prototypes.  */
00040 extern void _initialize_i386gnu_tdep (void);
00041 
00042 void
00043 _initialize_i386gnu_tdep (void)
00044 {
00045   gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_HURD, i386gnu_init_abi);
00046 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines