hurd: Add shared mig declarations
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 1 Jun 2020 07:50:14 +0000 (07:50 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 1 Jun 2020 07:52:24 +0000 (07:52 +0000)
commitb7ed9f3d466700d4e766083b1e4f3a132e5fd4b4
tree3e62ad26994cb33f955ad38dd5284ed84f104fce
parentcd22ee05137b858fead379976d4c51e5cf23d907
hurd: Add shared mig declarations

We are using -Werror=missing-declarations, and the _S.h files generated
by mig do not currently include a declaration for the server routine.
gnu-nat.c used to have its own external declarations, but better just
share them between gnu-nat.c and the _S.c files.

Fixes

exc_request_S.c:177:24: error: no previous declaration for ‘exc_server’ [-Werror=missing-declarations]
  177 | mig_external boolean_t exc_server

gdb/ChangeLog:

* config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
"-include gnu-nat-mig.h".
* gnu-nat-mig.h: New file.
* gnu-nat.c: Include "gnu-nat-mig.h".
(exc_server, msg_reply_server, notify_server,
process_reply_server): Remove declarations.
gdb/ChangeLog
gdb/config/i386/i386gnu.mn
gdb/gnu-nat-mig.h [new file with mode: 0644]
gdb/gnu-nat.c
This page took 0.025429 seconds and 4 git commands to generate.