aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2020-10-02 01:00:22 +0200
committerKamil Rytarowski <n54@gmx.com>2020-10-02 01:04:39 +0200
commit064280be25f2ff27477ce649f01a70d42ddad2ae (patch)
tree359e7e9324a008ae0d2d69ad7b538d969859409c /gdb
parent6ff330351e7741774c4b7ac1214cf7d73c7eac4d (diff)
downloadgdb-064280be25f2ff27477ce649f01a70d42ddad2ae.zip
gdb-064280be25f2ff27477ce649f01a70d42ddad2ae.tar.gz
gdb-064280be25f2ff27477ce649f01a70d42ddad2ae.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/i386-tdep.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 33e5df7..8081081 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
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.
* i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
diff --git a/gdb/i386-tdep.h b/gdb/i386-tdep.h
index c61ffcf..5ff2eed 100644
--- a/gdb/i386-tdep.h
+++ b/gdb/i386-tdep.h
@@ -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[];