mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 09:38:57 +00:00
gdb: fix IA64 build failure of linux-nat
On IA64 built failed as:
```
ia64-linux-nat.c:352:29: error: 'gdbarch_num_regs' was not declared in this scope
352 | if (regno < 0 || regno >= gdbarch_num_regs (gdbarch))
| ^~~~~~~~~~~~~~~~
```
The fix includes "gdbarch.h" header where symbol is declared.
* ia64-linux-nat.c: Include "gdbarch.h" to declare used
'gdbarch_num_regs'.
Signed-off-by: Sergei Trofimovich <siarheit@google.com>
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2020-08-17 Sergei Trofimovich <siarheit@google.com>
|
||||
|
||||
* ia64-linux-nat.c: Include "gdbarch.h" to declare used
|
||||
'gdbarch_num_regs'.
|
||||
|
||||
2020-08-17 Tom Tromey <tromey@adacore.com>
|
||||
|
||||
* ada-varobj.c (ada_varobj_decode_var): Handle case where
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "defs.h"
|
||||
#include "inferior.h"
|
||||
#include "target.h"
|
||||
#include "gdbarch.h"
|
||||
#include "gdbcore.h"
|
||||
#include "regcache.h"
|
||||
#include "ia64-tdep.h"
|
||||
|
||||
Reference in New Issue
Block a user