diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-06-01 07:50:14 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-06-01 07:52:24 +0000 |
commit | b7ed9f3d466700d4e766083b1e4f3a132e5fd4b4 (patch) | |
tree | 3e62ad26994cb33f955ad38dd5284ed84f104fce /gdb/config | |
parent | cd22ee05137b858fead379976d4c51e5cf23d907 (diff) | |
download | gdb-b7ed9f3d466700d4e766083b1e4f3a132e5fd4b4.zip gdb-b7ed9f3d466700d4e766083b1e4f3a132e5fd4b4.tar.gz gdb-b7ed9f3d466700d4e766083b1e4f3a132e5fd4b4.tar.bz2 |
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.
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/i386/i386gnu.mn | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/config/i386/i386gnu.mn b/gdb/config/i386/i386gnu.mn index b1985b7..b7414e3 100644 --- a/gdb/config/i386/i386gnu.mn +++ b/gdb/config/i386/i386gnu.mn @@ -21,7 +21,7 @@ MIGCOM = $(MIG) -cc cat - /dev/null | $(MIGCOM) -sheader /dev/null -server /dev/null -user $*_U.c -header $*_U.h # MIG stubs are not yet ready for C++ compilation. -%_S.o %_U.o : COMPILE.post += -x c +%_S.o %_U.o : COMPILE.post += -x c -include gnu-nat-mig.h NAT_GENERATED_FILES = notify_S.h notify_S.c \ process_reply_S.h process_reply_S.c \ |