gdb.patch 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. Index: Makefile.in
  2. --- Makefile.in.orig 2004-06-01 22:30:36.837939881 +0200
  3. +++ Makefile.in 2004-06-01 22:30:47.314628468 +0200
  4. @@ -217,6 +217,7 @@
  5. CC = @CC@
  6. CFLAGS = @CFLAGS@
  7. +CPPFLAGS = @CPPFLAGS@
  8. LIBCFLAGS = $(CFLAGS)
  9. CXX = @CXX@
  10. @@ -278,6 +279,7 @@
  11. # (which we know are built with gcc) are built with optimizations so
  12. # prepend -O2 when setting CFLAGS_FOR_TARGET.
  13. CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
  14. +CPPFLAGS_FOR_TARGET = $(CPPFLAGS)
  15. # If GCC_FOR_TARGET is not overriden on the command line, then this
  16. # variable is passed down to the gcc Makefile, where it is used to
  17. # build libgcc2.a. We define it here so that it can itself be
  18. @@ -415,10 +417,6 @@
  19. "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
  20. "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
  21. "EXPECT=$(EXPECT)" \
  22. - "INSTALL=$(INSTALL)" \
  23. - "INSTALL_DATA=$(INSTALL_DATA)" \
  24. - "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  25. - "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
  26. "LEX=$(LEX)" \
  27. "M4=$(M4)" \
  28. "MAKE=$(MAKE)" \
  29. @@ -428,6 +426,7 @@
  30. "YACC=$(YACC)" \
  31. "AR_FLAGS=$(AR_FLAGS)" \
  32. "CFLAGS=$(CFLAGS)" \
  33. + "CPPFLAGS=$(CPPFLAGS)" \
  34. "CXXFLAGS=$(CXXFLAGS)" \
  35. "LDFLAGS=$(LDFLAGS)" \
  36. "LIBCFLAGS=$(LIBCFLAGS)" \
  37. @@ -493,6 +492,7 @@
  38. 'AS=$$(AS_FOR_TARGET)' \
  39. 'CC=$$(CC_FOR_TARGET)' \
  40. 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
  41. + 'CPPFLAGS=$$(CPPFLAGS_FOR_TARGET)' \
  42. 'CXX=$$(CXX_FOR_TARGET)' \
  43. 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
  44. 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
  45. @@ -21695,6 +21695,7 @@
  46. s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
  47. CC="$(CC)"; export CC; \
  48. CFLAGS="$(CFLAGS)"; export CFLAGS; \
  49. + CPPFLAGS="$(CPPFLAGS)"; export CPPFLAGS; \
  50. CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
  51. CXX="$(CXX)"; export CXX; \
  52. CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
  53. Index: gdb/configure.in
  54. --- gdb/configure.in.orig 2004-06-09 11:36:45.889533600 +0200
  55. +++ gdb/configure.in 2004-06-09 11:36:55.899816800 +0200
  56. @@ -374,7 +374,7 @@
  57. Solaris 2.[78] when using GCC. ]])
  58. fi ;;
  59. esac
  60. -AC_CHECK_HEADERS(curses.h ncurses.h term.h)
  61. +AC_CHECK_HEADERS(ncurses.h term.h curses.h)
  62. # FIXME: kettenis/20030102: In most cases we include these
  63. # unconditionally, so what's the point in checking these?
  64. Index: gdb/configure
  65. --- gdb/configure.orig 2004-02-26 01:41:46.000000000 +0100
  66. +++ gdb/configure 2004-06-09 11:37:18.718615900 +0200
  67. @@ -5569,7 +5569,7 @@
  68. fi ;;
  69. esac
  70. -for ac_hdr in curses.h ncurses.h term.h
  71. +for ac_hdr in ncurses.h term.h curses.h
  72. do
  73. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  74. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  75. Index: gdb/Makefile.in
  76. --- gdb/Makefile.in.orig 2004-02-28 19:04:36 +0100
  77. +++ gdb/Makefile.in 2004-06-09 13:04:54 +0200
  78. @@ -329,6 +329,7 @@
  79. # CFLAGS is specifically reserved for setting from the command line
  80. # when running make. I.E. "make CFLAGS=-Wmissing-prototypes".
  81. CFLAGS = @CFLAGS@
  82. +CPPFLAGS = @CPPFLAGS@
  83. # Need to pass this to testsuite for "make check". Probably should be
  84. # consistent with top-level Makefile.in and gdb/testsuite/Makefile.in
  85. @@ -429,6 +430,7 @@
  86. "AR_FLAGS=$(AR_FLAGS)" \
  87. "CC=$(CC)" \
  88. "CFLAGS=$(CFLAGS)" \
  89. + "CPPFLAGS=$(CPPFLAGS)" \
  90. "CXX=$(CXX)" \
  91. "CXXFLAGS=$(CXXFLAGS)" \
  92. "DLLTOOL=$(DLLTOOL)" \
  93. @@ -488,6 +490,7 @@
  94. 'CC=$$(CC_FOR_TARGET)' \
  95. "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
  96. "CFLAGS=$(CFLAGS)" \
  97. + "CPPFLAGS=$(CPPFLAGS)" \
  98. 'CXX=$$(CXX_FOR_TARGET)' \
  99. "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
  100. "CXXFLAGS=$(CXXFLAGS)" \
  101. @@ -928,7 +931,7 @@
  102. # Prevent Sun make from putting in the machine type. Setting
  103. # TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1.
  104. .c.o:
  105. - $(CC) -c $(INTERNAL_CFLAGS) $<
  106. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $<
  107. all: gdb$(EXEEXT) $(CONFIG_ALL)
  108. @$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_do
  109. @@ -1371,16 +1374,16 @@
  110. # Provide explicit rule/dependency - works for more makes.
  111. copying.o: $(srcdir)/copying.c
  112. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/copying.c
  113. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/copying.c
  114. hpux-thread.o: $(srcdir)/hpux-thread.c
  115. - $(CC) -c $(INTERNAL_CFLAGS) -I$(srcdir)/osf-share \
  116. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) -I$(srcdir)/osf-share \
  117. -I$(srcdir)/osf-share/HP800 -I/usr/include/dce \
  118. $(srcdir)/hpux-thread.c
  119. # main.o needs an explicit build rule to get TARGET_SYSTEM_ROOT and BINDIR.
  120. main.o: main.c
  121. - $(CC) -c $(INTERNAL_CFLAGS) $(TARGET_SYSTEM_ROOT_DEFINE) \
  122. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(TARGET_SYSTEM_ROOT_DEFINE) \
  123. -DBINDIR=\"$(bindir)\" $(srcdir)/main.c
  124. # FIXME: cagney/2003-08-10: "monitor.c" gets -Wformat-nonliteral
  125. @@ -1411,7 +1414,7 @@
  126. $(srcdir)/thread-db.c
  127. v850ice.o: $(srcdir)/v850ice.c
  128. - $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
  129. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
  130. $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) \
  131. $(GDBTK_CFLAGS) \
  132. $(srcdir)/v850ice.c
  133. @@ -2511,31 +2514,31 @@
  134. $(objfiles_h) $(source_h) $(disasm_h) $(ui_out_h) $(top_h) \
  135. $(cli_decode_h) $(cli_script_h) $(cli_setshow_h) $(cli_cmds_h) \
  136. $(tui_h)
  137. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-cmds.c
  138. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/cli/cli-cmds.c
  139. cli-decode.o: $(srcdir)/cli/cli-decode.c $(defs_h) $(symtab_h) \
  140. $(gdb_regex_h) $(gdb_string_h) $(ui_out_h) $(cli_cmds_h) \
  141. $(cli_decode_h) $(tui_h) $(gdb_assert_h)
  142. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-decode.c
  143. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/cli/cli-decode.c
  144. cli-dump.o: $(srcdir)/cli/cli-dump.c $(defs_h) $(gdb_string_h) \
  145. $(cli_decode_h) $(cli_cmds_h) $(value_h) $(completer_h) \
  146. $(cli_dump_h) $(gdb_assert_h) $(target_h) $(readline_h)
  147. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-dump.c
  148. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/cli/cli-dump.c
  149. cli-interp.o: $(srcdir)/cli/cli-interp.c $(defs_h) $(interps_h) $(wrapper_h) \
  150. $(event_top_h) $(ui_out_h) $(cli_out_h) $(top_h) $(gdb_string_h)
  151. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-interp.c
  152. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/cli/cli-interp.c
  153. cli-logging.o: $(srcdir)/cli/cli-logging.c $(defs_h) $(gdbcmd_h) $(ui_out_h) \
  154. $(gdb_string_h)
  155. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-logging.c
  156. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/cli/cli-logging.c
  157. cli-script.o: $(srcdir)/cli/cli-script.c $(defs_h) $(value_h) $(language_h) \
  158. $(ui_out_h) $(gdb_string_h) $(top_h) $(cli_cmds_h) $(cli_decode_h) \
  159. $(cli_script_h)
  160. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-script.c
  161. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/cli/cli-script.c
  162. cli-setshow.o: $(srcdir)/cli/cli-setshow.c $(defs_h) $(readline_tilde_h) \
  163. $(value_h) $(gdb_string_h) $(ui_out_h) $(cli_decode_h) $(cli_cmds_h) \
  164. $(cli_setshow_h)
  165. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-setshow.c
  166. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/cli/cli-setshow.c
  167. cli-utils.o: $(srcdir)/cli/cli-utils.c $(defs_h) $(cli_utils_h)
  168. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-utils.c
  169. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/cli/cli-utils.c
  170. #
  171. # GDBTK sub-directory
  172. @@ -2605,7 +2608,7 @@
  173. $(symtab_h) $(inferior_h) $(command_h) \
  174. $(bfd_h) $(symfile_h) $(objfiles_h) $(target_h) $(gdb_string_h) \
  175. $(tracepoint_h) $(top_h)
  176. - $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
  177. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
  178. $(ITK_CFLAGS) \
  179. $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) $(GDBTK_CFLAGS)\
  180. $(srcdir)/gdbtk/generic/gdbtk.c \
  181. @@ -2616,7 +2619,7 @@
  182. $(srcdir)/gdbtk/generic/gdbtk-cmds.h \
  183. $(defs_h) $(breakpoint_h) $(tracepoint_h) \
  184. $(symfile_h) $(symtab_h) $(gdb_string_h)
  185. - $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
  186. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
  187. $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) \
  188. $(GDBTK_CFLAGS) $(srcdir)/gdbtk/generic/gdbtk-bp.c \
  189. -DGDBTK_LIBRARY=\"$(GDBTK_LIBRARY)\"
  190. @@ -2627,7 +2630,7 @@
  191. $(gdbcore_h) $(demangle_h) $(linespec_h) $(tui_file_h) $(top_h) \
  192. $(annotate_h) $(block_h) $(dictionary_h) $(gdb_string_h) \
  193. $(dis_asm_h) $(gdbcmd_h)
  194. - $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
  195. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
  196. $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) \
  197. $(GDBTK_CFLAGS) $(srcdir)/gdbtk/generic/gdbtk-cmds.c \
  198. -DGDBTK_LIBRARY=\"$(GDBTK_LIBRARY)\"
  199. @@ -2637,7 +2640,7 @@
  200. $(symtab_h) $(inferior_h) $(command_h) \
  201. $(bfd_h) $(symfile_h) $(objfiles_h) $(target_h) $(gdb_string_h) \
  202. $(tracepoint_h)
  203. - $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
  204. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
  205. $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) $(GDBTK_CFLAGS)\
  206. $(srcdir)/gdbtk/generic/gdbtk-hooks.c -DGDBTK_LIBRARY=\"$(GDBTK_LIBRARY)\"
  207. @@ -2645,13 +2648,13 @@
  208. $(defs_h) $(interps_h) $(ui_out_h) $(ui_file_h) \
  209. $(cli_out_h) $(gdb_string_h) $(cli_cmds_h) $(cli_decode_h) \
  210. $(srcdir)/gdbtk/generic/gdbtk.h
  211. - $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
  212. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
  213. $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) $(GDBTK_CFLAGS) \
  214. $(srcdir)/gdbtk/generic/gdbtk-interp.c
  215. gdbtk-main.o: $(srcdir)/gdbtk/generic/gdbtk-main.c $(defs_h) $(main_h) \
  216. $(gdb_string_h)
  217. - $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
  218. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
  219. $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) $(GDBTK_CFLAGS)\
  220. $(srcdir)/gdbtk/generic/gdbtk-main.c -DGDBTK_LIBRARY=\"$(GDBTK_LIBRARY)\"
  221. @@ -2659,7 +2662,7 @@
  222. $(srcdir)/gdbtk/generic/gdbtk.h \
  223. $(srcdir)/gdbtk/generic/gdbtk-cmds.h \
  224. $(defs_h) $(frame_h) $(value_h) $(gdb_string_h)
  225. - $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
  226. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
  227. $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) \
  228. $(GDBTK_CFLAGS) $(srcdir)/gdbtk/generic/gdbtk-register.c \
  229. -DGDBTK_LIBRARY=\"$(GDBTK_LIBRARY)\"
  230. @@ -2669,7 +2672,7 @@
  231. $(srcdir)/gdbtk/generic/gdbtk-wrapper.h \
  232. $(defs_h) $(target_h) $(breakpoint_h) $(linespec_h) \
  233. $(block_h) $(dictionary_h)
  234. - $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
  235. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
  236. $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) \
  237. $(GDBTK_CFLAGS) $(srcdir)/gdbtk/generic/gdbtk-stack.c \
  238. -DGDBTK_LIBRARY=\"$(GDBTK_LIBRARY)\"
  239. @@ -2677,14 +2680,14 @@
  240. gdbtk-varobj.o: $(srcdir)/gdbtk/generic/gdbtk-varobj.c \
  241. $(srcdir)/gdbtk/generic/gdbtk.h \
  242. $(defs_h) $(value_h) $(varobj_h) $(gdb_string_h)
  243. - $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
  244. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(IDE_CFLAGS) $(ITCL_CFLAGS) \
  245. $(TCL_CFLAGS) $(TK_CFLAGS) $(X11_CFLAGS) $(GDBTK_CFLAGS)\
  246. $(srcdir)/gdbtk/generic/gdbtk-varobj.c
  247. gdbtk-wrapper.o: $(srcdir)/gdbtk/generic/gdbtk-wrapper.c \
  248. $(srcdir)/gdbtk/generic/gdbtk-wrapper.h \
  249. $(defs_h) $(frame_h) $(value_h)
  250. - $(CC) -c $(INTERNAL_CFLAGS) $(IDE_CFLAGS) $(GDBTK_CFLAGS)\
  251. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(IDE_CFLAGS) $(GDBTK_CFLAGS)\
  252. $(srcdir)/gdbtk/generic/gdbtk-wrapper.c
  253. #
  254. @@ -2696,52 +2699,52 @@
  255. mi-cmd-break.o: $(srcdir)/mi/mi-cmd-break.c $(defs_h) $(mi_cmds_h) \
  256. $(ui_out_h) $(mi_out_h) $(breakpoint_h) $(gdb_string_h) \
  257. $(mi_getopt_h) $(gdb_events_h) $(gdb_h)
  258. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-cmd-break.c
  259. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/mi/mi-cmd-break.c
  260. mi-cmd-disas.o: $(srcdir)/mi/mi-cmd-disas.c $(defs_h) $(target_h) $(value_h) \
  261. $(mi_cmds_h) $(mi_getopt_h) $(gdb_string_h) $(ui_out_h) $(disasm_h)
  262. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-cmd-disas.c
  263. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/mi/mi-cmd-disas.c
  264. mi-cmd-env.o: $(srcdir)/mi/mi-cmd-env.c $(defs_h) $(inferior_h) $(value_h) \
  265. $(mi_out_h) $(mi_cmds_h) $(mi_getopt_h) $(symtab_h) $(target_h) \
  266. $(environ_h) $(command_h) $(ui_out_h) $(top_h) $(gdb_string_h) \
  267. $(gdb_stat_h)
  268. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-cmd-env.c
  269. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/mi/mi-cmd-env.c
  270. mi-cmd-file.o: $(srcdir)/mi/mi-cmd-file.c $(defs_h) $(mi_cmds_h) \
  271. $(mi_getopt_h) $(ui_out_h) $(symtab_h) $(source_h)
  272. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-cmd-file.c
  273. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/mi/mi-cmd-file.c
  274. mi-cmds.o: $(srcdir)/mi/mi-cmds.c $(defs_h) $(top_h) $(mi_cmds_h) \
  275. $(gdb_string_h)
  276. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-cmds.c
  277. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/mi/mi-cmds.c
  278. mi-cmd-stack.o: $(srcdir)/mi/mi-cmd-stack.c $(defs_h) $(target_h) $(frame_h) \
  279. $(value_h) $(mi_cmds_h) $(ui_out_h) $(symtab_h) $(block_h) \
  280. $(stack_h) $(dictionary_h) $(gdb_string_h)
  281. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-cmd-stack.c
  282. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/mi/mi-cmd-stack.c
  283. mi-cmd-var.o: $(srcdir)/mi/mi-cmd-var.c $(defs_h) $(mi_cmds_h) $(ui_out_h) \
  284. $(mi_out_h) $(varobj_h) $(value_h) $(gdb_string_h)
  285. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-cmd-var.c
  286. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/mi/mi-cmd-var.c
  287. mi-console.o: $(srcdir)/mi/mi-console.c $(defs_h) $(mi_console_h) \
  288. $(gdb_string_h)
  289. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-console.c
  290. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/mi/mi-console.c
  291. mi-getopt.o: $(srcdir)/mi/mi-getopt.c $(defs_h) $(mi_getopt_h) \
  292. $(gdb_string_h)
  293. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-getopt.c
  294. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/mi/mi-getopt.c
  295. mi-interp.o: $(srcdir)/mi/mi-interp.c $(defs_h) $(gdb_string_h) $(interps_h) \
  296. $(event_top_h) $(event_loop_h) $(inferior_h) $(ui_out_h) $(top_h) \
  297. $(mi_main_h) $(mi_cmds_h) $(mi_out_h) $(mi_console_h)
  298. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-interp.c
  299. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/mi/mi-interp.c
  300. mi-main.o: $(srcdir)/mi/mi-main.c $(defs_h) $(target_h) $(inferior_h) \
  301. $(gdb_string_h) $(top_h) $(gdbthread_h) $(mi_cmds_h) $(mi_parse_h) \
  302. $(mi_getopt_h) $(mi_console_h) $(ui_out_h) $(mi_out_h) $(interps_h) \
  303. $(event_loop_h) $(event_top_h) $(gdbcore_h) $(value_h) $(regcache_h) \
  304. $(gdb_h) $(frame_h) $(mi_main_h)
  305. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-main.c
  306. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/mi/mi-main.c
  307. mi-out.o: $(srcdir)/mi/mi-out.c $(defs_h) $(ui_out_h) $(mi_out_h)
  308. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-out.c
  309. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/mi/mi-out.c
  310. mi-parse.o: $(srcdir)/mi/mi-parse.c $(defs_h) $(mi_cmds_h) $(mi_parse_h) \
  311. $(gdb_string_h)
  312. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-parse.c
  313. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/mi/mi-parse.c
  314. mi-symbol-cmds.o: $(srcdir)/mi/mi-symbol-cmds.c $(defs_h) $(mi_cmds_h) \
  315. $(symtab_h) $(ui_out_h)
  316. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-symbol-cmds.c
  317. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/mi/mi-symbol-cmds.c
  318. #
  319. # rdi-share sub-directory
  320. @@ -2767,7 +2770,7 @@
  321. signals.o: $(srcdir)/signals/signals.c $(server_h) $(defs_h) $(target_h) \
  322. $(gdb_string_h)
  323. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/signals/signals.c
  324. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/signals/signals.c
  325. #
  326. # gdb/tui/ dependencies
  327. @@ -2780,21 +2783,21 @@
  328. $(tui_stack_h) $(tui_win_h) $(tui_winsource_h) $(tui_windata_h) \
  329. $(target_h) $(frame_h) $(breakpoint_h) $(inferior_h) $(symtab_h) \
  330. $(source_h) $(gdb_curses_h) $(readline_h)
  331. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui.c
  332. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/tui/tui.c
  333. tui-command.o: $(srcdir)/tui/tui-command.c $(defs_h) $(tui_h) $(tui_data_h) \
  334. $(tui_win_h) $(tui_io_h) $(gdb_curses_h) $(gdb_string_h)
  335. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-command.c
  336. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/tui/tui-command.c
  337. tui-data.o: $(srcdir)/tui/tui-data.c $(defs_h) $(symtab_h) $(tui_h) \
  338. $(tui_data_h) $(tui_wingeneral_h) $(gdb_string_h) $(gdb_curses_h)
  339. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-data.c
  340. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/tui/tui-data.c
  341. tui-disasm.o: $(srcdir)/tui/tui-disasm.c $(defs_h) $(symtab_h) \
  342. $(breakpoint_h) $(frame_h) $(value_h) $(source_h) $(disasm_h) \
  343. $(gdb_string_h) $(tui_h) $(tui_data_h) $(tui_win_h) $(tui_layout_h) \
  344. $(tui_winsource_h) $(tui_stack_h) $(tui_file_h) $(gdb_curses_h)
  345. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-disasm.c
  346. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/tui/tui-disasm.c
  347. tui-file.o: $(srcdir)/tui/tui-file.c $(defs_h) $(ui_file_h) $(tui_file_h) \
  348. $(tui_io_h) $(tui_h) $(gdb_string_h)
  349. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-file.c
  350. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/tui/tui-file.c
  351. tui-hooks.o: $(srcdir)/tui/tui-hooks.c $(defs_h) $(symtab_h) $(inferior_h) \
  352. $(command_h) $(bfd_h) $(symfile_h) $(objfiles_h) $(target_h) \
  353. $(gdbcore_h) $(event_loop_h) $(event_top_h) $(frame_h) \
  354. @@ -2802,63 +2805,63 @@
  355. $(tui_h) $(tui_hooks_h) $(tui_data_h) $(tui_layout_h) $(tui_io_h) \
  356. $(tui_regs_h) $(tui_win_h) $(tui_stack_h) $(tui_windata_h) \
  357. $(tui_winsource_h) $(gdb_curses_h)
  358. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-hooks.c
  359. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/tui/tui-hooks.c
  360. tui-interp.o: $(srcdir)/tui/tui-interp.c $(defs_h) $(interps_h) $(top_h) \
  361. $(event_top_h) $(event_loop_h) $(ui_out_h) $(cli_out_h) \
  362. $(tui_data_h) $(readline_h) $(tui_win_h) $(tui_h) $(tui_io_h)
  363. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-interp.c
  364. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/tui/tui-interp.c
  365. tui-io.o: $(srcdir)/tui/tui-io.c $(defs_h) $(terminal_h) $(target_h) \
  366. $(event_loop_h) $(event_top_h) $(command_h) $(top_h) $(readline_h) \
  367. $(tui_h) $(tui_data_h) $(tui_io_h) $(tui_command_h) $(tui_win_h) \
  368. $(tui_wingeneral_h) $(tui_file_h) $(ui_out_h) $(cli_out_h) \
  369. $(gdb_curses_h)
  370. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-io.c
  371. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/tui/tui-io.c
  372. tui-layout.o: $(srcdir)/tui/tui-layout.c $(defs_h) $(command_h) $(symtab_h) \
  373. $(frame_h) $(source_h) $(tui_h) $(tui_data_h) $(tui_windata_h) \
  374. $(tui_wingeneral_h) $(tui_stack_h) $(tui_regs_h) $(tui_win_h) \
  375. $(tui_winsource_h) $(tui_disasm_h) $(gdb_string_h) $(gdb_curses_h)
  376. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-layout.c
  377. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/tui/tui-layout.c
  378. tui-main.o: $(srcdir)/tui/tui-main.c $(defs_h) $(main_h) $(gdb_string_h) \
  379. $(interps_h)
  380. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-main.c
  381. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/tui/tui-main.c
  382. tui-out.o: $(srcdir)/tui/tui-out.c $(defs_h) $(ui_out_h) $(tui_h) \
  383. $(gdb_string_h) $(gdb_assert_h)
  384. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-out.c
  385. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/tui/tui-out.c
  386. tui-regs.o: $(srcdir)/tui/tui-regs.c $(defs_h) $(tui_h) $(tui_data_h) \
  387. $(symtab_h) $(gdbtypes_h) $(gdbcmd_h) $(frame_h) $(regcache_h) \
  388. $(inferior_h) $(target_h) $(gdb_string_h) $(tui_layout_h) \
  389. $(tui_win_h) $(tui_windata_h) $(tui_wingeneral_h) $(tui_file_h) \
  390. $(gdb_curses_h)
  391. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-regs.c
  392. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/tui/tui-regs.c
  393. tui-source.o: $(srcdir)/tui/tui-source.c $(defs_h) $(symtab_h) $(frame_h) \
  394. $(breakpoint_h) $(source_h) $(symtab_h) $(tui_h) $(tui_data_h) \
  395. $(tui_stack_h) $(tui_winsource_h) $(tui_source_h) $(gdb_string_h) \
  396. $(gdb_curses_h)
  397. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-source.c
  398. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/tui/tui-source.c
  399. tui-stack.o: $(srcdir)/tui/tui-stack.c $(defs_h) $(symtab_h) $(breakpoint_h) \
  400. $(frame_h) $(command_h) $(inferior_h) $(target_h) $(top_h) \
  401. $(gdb_string_h) $(tui_h) $(tui_data_h) $(tui_stack_h) \
  402. $(tui_wingeneral_h) $(tui_source_h) $(tui_winsource_h) $(tui_file_h) \
  403. $(gdb_curses_h)
  404. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-stack.c
  405. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/tui/tui-stack.c
  406. tui-win.o: $(srcdir)/tui/tui-win.c $(defs_h) $(command_h) $(symtab_h) \
  407. $(breakpoint_h) $(frame_h) $(cli_cmds_h) $(top_h) $(source_h) \
  408. $(tui_h) $(tui_data_h) $(tui_wingeneral_h) $(tui_stack_h) \
  409. $(tui_regs_h) $(tui_disasm_h) $(tui_source_h) $(tui_winsource_h) \
  410. $(tui_windata_h) $(gdb_curses_h) $(gdb_string_h) $(readline_h)
  411. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-win.c
  412. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/tui/tui-win.c
  413. tui-windata.o: $(srcdir)/tui/tui-windata.c $(defs_h) $(tui_h) $(tui_data_h) \
  414. $(tui_wingeneral_h) $(tui_regs_h) $(gdb_string_h) $(gdb_curses_h)
  415. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-windata.c
  416. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/tui/tui-windata.c
  417. tui-wingeneral.o: $(srcdir)/tui/tui-wingeneral.c $(defs_h) $(tui_h) \
  418. $(tui_data_h) $(tui_wingeneral_h) $(tui_win_h) $(gdb_curses_h)
  419. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-wingeneral.c
  420. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/tui/tui-wingeneral.c
  421. tui-winsource.o: $(srcdir)/tui/tui-winsource.c $(defs_h) $(symtab_h) \
  422. $(frame_h) $(breakpoint_h) $(value_h) $(source_h) $(tui_h) \
  423. $(tui_data_h) $(tui_stack_h) $(tui_win_h) $(tui_wingeneral_h) \
  424. $(tui_winsource_h) $(tui_source_h) $(tui_disasm_h) $(gdb_string_h) \
  425. $(gdb_curses_h)
  426. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/tui/tui-winsource.c
  427. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/tui/tui-winsource.c
  428. #
  429. # vx-share sub-directory
  430. @@ -2866,14 +2869,14 @@
  431. xdr_ld.o: vx-share/xdr_ld.c $(defs_h) vx-share/vxTypes.h \
  432. vx-share/vxWorks.h vx-share/xdr_ld.h
  433. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/vx-share/xdr_ld.c
  434. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/vx-share/xdr_ld.c
  435. xdr_ptrace.o: vx-share/xdr_ptrace.c $(defs_h) vx-share/vxTypes.h \
  436. vx-share/vxWorks.h vx-share/xdr_ptrace.h
  437. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/vx-share/xdr_ptrace.c
  438. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/vx-share/xdr_ptrace.c
  439. xdr_rdb.o: vx-share/xdr_rdb.c $(defs_h) vx-share/vxTypes.h \
  440. vx-share/vxWorks.h vx-share/xdr_rdb.h
  441. - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/vx-share/xdr_rdb.c
  442. + $(CC) -c $(INTERNAL_CFLAGS) $(CPPFLAGS) $(srcdir)/vx-share/xdr_rdb.c
  443. ### end of the gdb Makefile.in.
  444. Index: bfd/configure.in
  445. --- bfd/configure.in.orig 2004-06-15 11:42:13 +0200
  446. +++ bfd/configure.in 2004-06-15 11:43:40 +0200
  447. @@ -219,12 +219,6 @@
  448. COREFILE=
  449. ;;
  450. changequote(,)dnl
  451. - i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234]* | i[3-7]86-*-freebsd*aout*)
  452. -changequote([,])dnl
  453. - COREFILE=trad-core.lo
  454. - TRAD_HEADER='"hosts/i386bsd.h"'
  455. - ;;
  456. -changequote(,)dnl
  457. i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
  458. changequote([,])dnl
  459. COREFILE=''
  460. Index: bfd/configure
  461. --- bfd/configure.orig 2004-03-13 13:37:09 +0100
  462. +++ bfd/configure 2004-06-15 11:43:27 +0200
  463. @@ -5310,10 +5310,6 @@
  464. i[3-7]86-*-bsdi)
  465. COREFILE=
  466. ;;
  467. - i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234]* | i[3-7]86-*-freebsd*aout*)
  468. - COREFILE=trad-core.lo
  469. - TRAD_HEADER='"hosts/i386bsd.h"'
  470. - ;;
  471. i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
  472. COREFILE=''
  473. TRAD_HEADER='"hosts/i386bsd.h"'