Fix the i386 build

Remove old, no longer needed and no longer valid extern.

../../gdb/i386-nbsd-tdep.c:58:12: error: 'i386nbsd_sc_reg_offset' was declared 'extern' and later 'static' [-fpermissive]
   58 | static int i386nbsd_sc_reg_offset[] =
      |            ^~~~~~~~~~~~~~~~~~~~~~
In file included from ../../gdb/i386-nbsd-tdep.c:31:
../../gdb/i386-tdep.h:480:12: note: previous declaration of 'i386nbsd_sc_reg_offset'
  480 | extern int i386nbsd_sc_reg_offset[];
      |            ^~~~~~~~~~~~~~~~~~~~~~

gdb/ChangeLog:

	* i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
This commit is contained in:
Kamil Rytarowski 2020-10-02 01:00:22 +02:00
parent 6ff330351e
commit 064280be25
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2020-10-01 Kamil Rytarowski <n54@gmx.com>
* i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2020-10-01 Kamil Rytarowski <n54@gmx.com>
* i386-bsd-nat.c (_initialize_i386bsd_nat): Update.

View File

@ -477,7 +477,6 @@ extern CORE_ADDR i386obsd_sigtramp_start_addr;
extern CORE_ADDR i386obsd_sigtramp_end_addr;
extern int i386fbsd4_sc_reg_offset[];
extern int i386fbsd_sc_reg_offset[];
extern int i386nbsd_sc_reg_offset[];
extern int i386obsd_sc_reg_offset[];
extern int i386bsd_sc_reg_offset[];