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]

Re: [patch/commit] Fix nested header include in infttrace.h


> Unfortunatly this is a GCC extension.  It sounds like a header file is 
really?! wow... 

fwiw, this works with the ANSI C hp compiler too, and hpux is the only
thing that uses infttrace.h ....

> missing:
> 	#ifndef FOO_H
> 	#define FOO_H
> 	#endif
> wrappers?  Adding them is ``obvious''.

no, it's not that... this brings in target.h "too early", so that when
a C file tries to include tm.h, we cannot override some #defines.

the alternative is:

+#undef PC_REQUIRES_RUN_BEFORE_USE
#define PC_REQUIRES_RUN_BEFORE_USE(pc) hppa_pc_requires_run_before_use (pc)

in config/pa/tm-hppa.h.

randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/


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