Include gdbarch.h in m68k-linux-nat.c
authorSimon Marchi <simon.marchi@efficios.com>
Sun, 24 Nov 2019 20:04:21 +0000 (15:04 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Sun, 24 Nov 2019 20:05:04 +0000 (15:05 -0500)
Fix this compilation error, and a bunch of similar ones:

      CXX    m68k-linux-nat.o
    /home/smarchi/src/binutils-gdb/gdb/m68k-linux-nat.c: In function ‘void fetch_register(regcache*, int)’:
    /home/smarchi/src/binutils-gdb/gdb/m68k-linux-nat.c:133:9: error: ‘gdbarch_register_name’ was not declared in this scope
             gdbarch_register_name (gdbarch, regno),
             ^~~~~~~~~~~~~~~~~~~~~

gdb/ChangeLog:

* m68k-linux-nat.c: Include gdbarch.h.

Change-Id: I7cd47bc5d094241b2596e29c244eb55ed11f7a02

gdb/ChangeLog
gdb/m68k-linux-nat.c

index 63a1508c49ba3be9436c0798017f3e5ce05ffdf9..3b656f48864e639e8fa92053b9d78fd63bf52142 100644 (file)
@@ -1,3 +1,7 @@
+2019-11-24  Simon Marchi  <simon.marchi@efficios.com>
+
+       * m68k-linux-nat.c: Include gdbarch.h.
+
 2019-11-24  Tom Tromey  <tom@tromey.com>
 
        * symfile.c (read_symbols): Update.
index 91e68bae29c9c8c005749f1b13674375677d5cb0..959dbf44760b2e287a4564965322b26fe4d05528 100644 (file)
@@ -25,6 +25,7 @@
 #include "regcache.h"
 #include "target.h"
 #include "linux-nat.h"
+#include "gdbarch.h"
 
 #include "m68k-tdep.h"