Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch/commit] Fix nested header include in infttrace.h
@ 2004-05-26 15:41 Randolph Chung
  2004-05-26 16:48 ` Andrew Cagney
  0 siblings, 1 reply; 5+ messages in thread
From: Randolph Chung @ 2004-05-26 15:41 UTC (permalink / raw)
  To: gdb-patches

infttrace.h was including target.h, which caused a lot of compile
warnings related to duplicate defines of PC_REQUIRES_RUN_BEFORE_USE.

this fixes it. 

commited as obvious. thx
randolph

2004-05-26  Randolph Chung  <tausq@debian.org>

	* infttrace.h (target_waitkind): Forward declare type instead of pulling
	in header file.

Index: infttrace.h
===================================================================
RCS file: /cvs/src/src/gdb/infttrace.h,v
retrieving revision 1.3
diff -u -p -r1.3 infttrace.h
--- infttrace.h	6 Apr 2004 18:29:10 -0000	1.3
+++ infttrace.h	26 May 2004 15:34:24 -0000
@@ -22,7 +22,7 @@
 #ifndef INFTTRACE_H
 #define INFTTRACE_H
 
-#include "target.h"		/* For enum target_waitkind.  */
+enum target_waitkind;
 
 extern int parent_attach_all (int, PTRACE_ARG3_TYPE, int);
 extern pid_t hppa_switched_threads (pid_t gdb_pid);
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-06-07 18:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-26 15:41 [patch/commit] Fix nested header include in infttrace.h Randolph Chung
2004-05-26 16:48 ` Andrew Cagney
2004-05-26 16:57   ` Randolph Chung
2004-05-26 19:29     ` Andrew Cagney
2004-06-07 18:04       ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox