X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fi386-linux-tdep.c;h=7c3962ec79eda74fa4b32088e20511d29e44d901;hb=1777feb0fea5ec350a86eecf81f71ccc60d4cf6f;hp=3ae19a7217baa55620ba10dabd425b7056ef8f7c;hpb=be0d2954849e6645bcd3eeb82b9e2f36e5a23ee6;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/i386-linux-tdep.c b/gdb/i386-linux-tdep.c index 3ae19a7217..7c3962ec79 100644 --- a/gdb/i386-linux-tdep.c +++ b/gdb/i386-linux-tdep.c @@ -1,7 +1,7 @@ /* Target-dependent code for GNU/Linux i386. - Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010 - Free Software Foundation, Inc. + Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010, + 2011 Free Software Foundation, Inc. This file is part of GDB. @@ -603,7 +603,8 @@ i386_linux_core_read_xcr0 (struct gdbarch *gdbarch, I386_LINUX_XSAVE_XCR0_OFFSET, 8)) { - warning (_("Couldn't read `xcr0' bytes from `.reg-xstate' section in core file.")); + warning (_("Couldn't read `xcr0' bytes from " + "`.reg-xstate' section in core file.")); return 0; } @@ -654,6 +655,8 @@ i386_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) gdb_assert (tdesc_data); + linux_init_abi (info, gdbarch); + /* GNU/Linux uses ELF. */ i386_elf_init_abi (info, gdbarch); @@ -858,7 +861,7 @@ i386_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) tdep->i386_sysenter_record = i386_linux_intx80_sysenter_record; /* N_FUN symbols in shared libaries have 0 for their values and need - to be relocated. */ + to be relocated. */ set_gdbarch_sofun_address_maybe_missing (gdbarch, 1); /* GNU/Linux uses SVR4-style shared libraries. */ @@ -888,7 +891,7 @@ i386_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) /* Displaced stepping. */ set_gdbarch_displaced_step_copy_insn (gdbarch, - simple_displaced_step_copy_insn); + i386_displaced_step_copy_insn); set_gdbarch_displaced_step_fixup (gdbarch, i386_displaced_step_fixup); set_gdbarch_displaced_step_free_closure (gdbarch, simple_displaced_step_free_closure); @@ -912,7 +915,7 @@ _initialize_i386_linux_tdep (void) gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_LINUX, i386_linux_init_abi); - /* Initialize the Linux target description */ + /* Initialize the Linux target description. */ initialize_tdesc_i386_linux (); initialize_tdesc_i386_mmx_linux (); initialize_tdesc_i386_avx_linux ();