Index: gdb/i386-darwin-tdep.c |
diff --git a/gdb/i386-darwin-tdep.c b/gdb/i386-darwin-tdep.c |
index 2e3fe9eb506ad65cff58d6a366e064429ea78f48..c353154bf0b5a4e432887b32311b7c19fc0b622a 100644 |
--- a/gdb/i386-darwin-tdep.c |
+++ b/gdb/i386-darwin-tdep.c |
@@ -56,7 +56,7 @@ int i386_darwin_thread_state_reg_offset[] = |
10 * 4, /* EIP */ |
9 * 4, /* EFLAGS */ |
11 * 4, /* CS */ |
- 8, /* SS */ |
+ 8 * 4, /* SS */ |
12 * 4, /* DS */ |
13 * 4, /* ES */ |
14 * 4, /* FS */ |
@@ -287,6 +287,9 @@ i386_mach_o_osabi_sniffer (bfd *abfd) |
return GDB_OSABI_UNKNOWN; |
} |
+/* -Wmissing-prototypes */ |
+extern initialize_file_ftype _initialize_i386_darwin_tdep; |
+ |
void |
_initialize_i386_darwin_tdep (void) |
{ |