gdb: fix IA64 build failure of linux-nat
authorSergei Trofimovich <siarheit@google.com>
Tue, 19 May 2020 21:19:45 +0000 (22:19 +0100)
committerSergei Trofimovich <siarheit@google.com>
Mon, 17 Aug 2020 20:52:52 +0000 (21:52 +0100)
commitf9b11e6b1833a6dc06a0af03bcb6bd42d7a2f009
tree48a048b6227bdcdef6785f8a5f64ee8ff0a488d5
parent326afb722951cacc6131e2d6d1511986748ca017
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>
gdb/ChangeLog
gdb/ia64-linux-nat.c
This page took 0.026796 seconds and 4 git commands to generate.