This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit/hppa] fix infttrace includes


HP's compiler gets snooty at an enum decl in a parameter list. infttrace.c forgot to include infttrace.h.

committed,
Andrew
2004-04-06  Andrew Cagney  <cagney@redhat.com>

	* infttrace.c: Include "infttrace.h".
	* infttrace.h: Include "target.h".
	* Makefile.in (infttrace_h): Update.
	(infttrace.o): Update.
	
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.532
diff -u -r1.532 Makefile.in
--- Makefile.in	6 Apr 2004 17:55:58 -0000	1.532
+++ Makefile.in	6 Apr 2004 18:26:32 -0000
@@ -692,7 +692,7 @@
 inferior_h = inferior.h $(breakpoint_h) $(target_h) $(frame_h)
 inf_loop_h = inf-loop.h
 inflow_h = inflow.h $(terminal_h)
-infttrace_h = infttrace.h
+infttrace_h = infttrace.h $(target_h)
 interps_h = interps.h
 jv_lang_h = jv-lang.h
 kod_h = kod.h
@@ -1931,7 +1931,7 @@
 	$(gdbcore_h) $(command_h) $(gdb_stat_h) $(gdb_wait_h) $(inflow_h)
 infttrace.o: infttrace.c $(defs_h) $(frame_h) $(inferior_h) $(target_h) \
 	$(gdb_string_h) $(gdb_wait_h) $(command_h) $(gdbthread_h) \
-	$(gdbcore_h)
+	$(gdbcore_h) $(infttrace_h)
 interps.o: interps.c $(defs_h) $(gdbcmd_h) $(ui_out_h) $(event_loop_h) \
 	$(event_top_h) $(interps_h) $(completer_h) $(gdb_string_h) \
 	$(gdb_events_h) $(gdb_assert_h) $(top_h)
Index: infttrace.c
===================================================================
RCS file: /cvs/src/src/gdb/infttrace.c,v
retrieving revision 1.29
diff -u -r1.29 infttrace.c
--- infttrace.c	14 Sep 2003 16:32:13 -0000	1.29
+++ infttrace.c	6 Apr 2004 18:26:33 -0000
@@ -28,6 +28,7 @@
 #include "gdb_wait.h"
 #include "command.h"
 #include "gdbthread.h"
+#include "infttrace.h"
 
 /* We need pstat functionality so that we can get the exec file
    for a process we attach to.
Index: infttrace.h
===================================================================
RCS file: /cvs/src/src/gdb/infttrace.h,v
retrieving revision 1.2
diff -u -r1.2 infttrace.h
--- infttrace.h	6 Apr 2004 17:56:01 -0000	1.2
+++ infttrace.h	6 Apr 2004 18:26:33 -0000
@@ -22,6 +22,8 @@
 #ifndef INFTTRACE_H
 #define INFTTRACE_H
 
+#include "target.h"		/* For enum target_waitkind.  */
+
 extern int parent_attach_all (int, PTRACE_ARG3_TYPE, int);
 extern pid_t hppa_switched_threads (pid_t gdb_pid);
 extern int hpux_has_forked (int pid, int *childpid);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]