gdb: fix sparc build failure of linux-nat
authorSergei Trofimovich <siarheit@google.com>
Sun, 25 Apr 2021 19:50:38 +0000 (20:50 +0100)
committerSergei Trofimovich <siarheit@google.com>
Mon, 26 Apr 2021 06:22:08 +0000 (07:22 +0100)
commitc290cb01face96fa9c2a4f96f7d57083da3c99f1
treedcfcb27e4528ea8ce296bfcbcd31894d546b5bb3
parent6476ec743f13594bd0ef642cabd7b1dd3548073e
gdb: fix sparc build failure of linux-nat

On sparc build failed as:

```
gdb/sparc-linux-nat.c: In member function
  'virtual void sparc_linux_nat_target::fetch_registers(regcache*, int)':
gdb/sparc-linux-nat.c:36:37:
  error: cannot convert 'regcache*' to 'process_stratum_target*'
   36 |   { sparc_fetch_inferior_registers (regcache, regnum); }
      |                                     ^~~~~~~~
      |                                     |
      |                                     regcache*
```

The fix adopts gdb/sparc-nat.h API change in d1e93af64a6
("gdb: set current thread in sparc_{fetch,collect}_inferior_registers").

gdb/ChangeLog:

* sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
by passing `process_stratum_target*` parameter.
gdb/ChangeLog
gdb/sparc-linux-nat.c