This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fix GNU/Hurd build error
- From: Jeroen Dekkers <jeroen at dekkers dot cx>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 29 May 2003 15:15:46 +0200
- Subject: [PATCH] Fix GNU/Hurd build error
This patch fixes two build errors on GNU/Hurd. The first error is that
some header files aren't generated because the variables are not
defined in the Makefile. Secondly gnu-nat.c uses obstacks but doesn't
include the gdb_obstack.h file.
2003-05-29 Jeroen Dekkers <jeroen@dekkers.cx>
* Makefile.in (exc_request_U_h): Define
(exc_request_S_h): Likewise.
(msg_reply_S_h): Likewise.
(msg_U_h): Likewise.
(notify_S_h): Likewise.
(process_reply_S_h): Likewise.
(gnu-nat.o): Depend on gdb_obstack_h
* gnu-nat.c: Include "gdb_obstack.h".
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.383
diff -u -p -r1.383 Makefile.in
--- Makefile.in 25 May 2003 18:50:54 -0000 1.383
+++ Makefile.in 29 May 2003 12:58:03 -0000
@@ -641,6 +641,8 @@ dwarf2loc_h = dwarf2loc.h
environ_h = environ.h
event_loop_h = event-loop.h
event_top_h = event-top.h
+exc_request_U_h = exc_request_U.h
+exc_request_S_h = exc_request_S.h
expression_h = expression.h $(symtab_h) $(doublest_h)
f_lang_h = f-lang.h
frame_h = frame.h
@@ -690,7 +692,10 @@ minimon_h = minimon.h
mips_tdep_h = mips-tdep.h
mipsnbsd_tdep_h = mipsnbsd-tdep.h
monitor_h = monitor.h
+msg_reply_S_h = msg_reply_S.h
+msg_U_h = msg_U.h
nbsd_tdep_h = nbsd-tdep.h
+notify_S_h = notify_S.h
ns32k_tdep_h = ns32k-tdep.h
objc_lang_h = objc-lang.h
objfiles_h = objfiles.h $(gdb_obstack_h) $(symfile_h)
@@ -703,6 +708,7 @@ parser_defs_h = parser-defs.h $(doublest
ppc_tdep_h = ppc-tdep.h
ppcnbsd_tdep_h = ppcnbsd-tdep.h
proc_utils_h = proc-utils.h
+process_reply_S_h = process_reply_S.h
regcache_h = regcache.h
reggroups_h = reggroups.h
remote_utils_h = remote-utils.h $(target_h)
@@ -1747,7 +1753,7 @@ gnu-nat.o: gnu-nat.c $(gdb_string_h) $(d
$(value_h) $(language_h) $(target_h) $(gdb_wait_h) $(gdbcmd_h) \
$(gdbcore_h) $(gdbthread_h) $(gdb_assert_h) $(gnu_nat_h) \
$(exc_request_S_h) $(notify_S_h) $(process_reply_S_h) \
- $(msg_reply_S_h) $(exc_request_U_h) $(msg_U_h)
+ $(msg_reply_S_h) $(exc_request_U_h) $(msg_U_h) $(gdb_obstack_h)
gnu-v2-abi.o: gnu-v2-abi.c $(defs_h) $(gdb_string_h) $(symtab_h) \
$(gdbtypes_h) $(value_h) $(demangle_h) $(cp_abi_h)
gnu-v3-abi.o: gnu-v3-abi.c $(defs_h) $(value_h) $(cp_abi_h) $(demangle_h) \
Index: gnu-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/gnu-nat.c,v
retrieving revision 1.25
diff -u -p -r1.25 gnu-nat.c
--- gnu-nat.c 12 Nov 2002 21:43:55 -0000 1.25
+++ gnu-nat.c 29 May 2003 12:58:04 -0000
@@ -62,6 +62,7 @@
#include "gdbcore.h"
#include "gdbthread.h"
#include "gdb_assert.h"
+#include "gdb_obstack.h"
#include "gnu-nat.h"