This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Explicit #include "value.h"
- To: gdb-patches at sources dot redhat dot com
- Subject: [patch] Explicit #include "value.h"
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Sun, 21 Oct 2001 13:15:11 -0400
FYI,
More value.h muck. This adds explicit includes to various C files
(instead of relying on really obscure include dependencies). I've
checked this in as, er, obvious.
Andrew
2001-10-21 Andrew Cagney <ac131313@redhat.com>
* config/a29k/tm-vx29k.h, i386-tdep.c: Include "value.h".
* arm-tdep.c, exec.c, ia64-tdep.c, infrun.c: Ditto.
* ppc-linux-tdep.c, remote-es.c, remote.c: Ditto.
* rs6000-tdep.c, s390-tdep.c, x86-64-tdep.c: Ditto.
* Makefile.in (arm-tdep.o, exec.o, i386-tdep.o, ia64-tdep.o)
(infrun.o, ppc-linux-tdep.o, remote.o, rs6000-tdep.o)
(x86-64-tdep.o): Update dependencies.
* gdbarch.sh [!GDB_MULTI_ARCH]: Include "value.h".
* gdbarch.h, gdbarch.c: Re-generate.
Index: tui/ChangeLog
2001-10-20 Andrew Cagney <ac131313@redhat.com>
* tuiDisassem.c: Include "value.h".
* tuiSourceWin.c: Ditto.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.119
diff -p -r1.119 Makefile.in
*** Makefile.in 2001/10/02 23:11:20 1.119
--- Makefile.in 2001/10/21 17:06:45
*************** arm-linux-tdep.o: arm-linux-tdep.c $(def
*** 1220,1226 ****
$(gdbtypes_h) $(floatformat_h) $(regcache_h) $(doublest_h)
arm-tdep.o: arm-tdep.c $(gdbcmd_h) $(gdbcore_h) $(inferior_h) $(defs_h) \
! $(gdbcore_h) $(regcache_h) $(doublest_h)
bcache.o: bcache.c bcache.h $(defs_h)
--- 1220,1226 ----
$(gdbtypes_h) $(floatformat_h) $(regcache_h) $(doublest_h)
arm-tdep.o: arm-tdep.c $(gdbcmd_h) $(gdbcore_h) $(inferior_h) $(defs_h) \
! $(gdbcore_h) $(regcache_h) $(doublest_h) $(value_h)
bcache.o: bcache.c bcache.h $(defs_h)
*************** inf-loop.o: inf-loop.c $(defs_h) $(infer
*** 1352,1358 ****
$(event_top_h)
exec.o: exec.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) $(inferior_h) \
! $(target_h) language.h $(gdb_string_h) $(completer_h)
expprint.o: expprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \
language.h $(parser_defs_h) $(symtab_h) $(value_h)
--- 1352,1358 ----
$(event_top_h)
exec.o: exec.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) $(inferior_h) \
! $(target_h) language.h $(gdb_string_h) $(completer_h) $(value_h)
expprint.o: expprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \
language.h $(parser_defs_h) $(symtab_h) $(value_h)
*************** i386gnu-nat.o: gnu-nat.h
*** 1513,1519 ****
i386-tdep.o: i386-tdep.c $(defs_h) $(gdb_string_h) $(frame_h) \
$(inferior_h) $(gdbcore_h) $(target_h) $(floatformat_h) \
$(symtab_h) $(gdbcmd_h) $(command_h) $(arch_utils_h) $(regcache_h) \
! $(doublest_h)
i386-nat.o: i386-nat.c $(defs_h) $(breakpoint_h) $(command_h) $(gdbcmd_h)
--- 1513,1519 ----
i386-tdep.o: i386-tdep.c $(defs_h) $(gdb_string_h) $(frame_h) \
$(inferior_h) $(gdbcore_h) $(target_h) $(floatformat_h) \
$(symtab_h) $(gdbcmd_h) $(command_h) $(arch_utils_h) $(regcache_h) \
! $(doublest_h) $(value_h)
i386-nat.o: i386-nat.c $(defs_h) $(breakpoint_h) $(command_h) $(gdbcmd_h)
*************** ia64-linux-nat.o: ia64-linux-nat.c $(de
*** 1564,1570 ****
ia64-linux-tdep.o: ia64-linux-tdep.c $(defs_h) $(arch_utils_h)
ia64-tdep.o: ia64-tdep.c $(defs_h) $(inferior_h) $(symfile_h) $(gdbcore_h) \
! $(arch_utils_h) $(floatformat_h) objfiles.h \
$(INCLUDE_DIR)/elf/common.h $(regcache_h) $(doublest_h)
infcmd.o: infcmd.c $(defs_h) environ.h $(gdbcmd_h) $(gdbcore_h) \
--- 1564,1570 ----
ia64-linux-tdep.o: ia64-linux-tdep.c $(defs_h) $(arch_utils_h)
ia64-tdep.o: ia64-tdep.c $(defs_h) $(inferior_h) $(symfile_h) $(gdbcore_h) \
! $(arch_utils_h) $(floatformat_h) objfiles.h $(value_h) \
$(INCLUDE_DIR)/elf/common.h $(regcache_h) $(doublest_h)
infcmd.o: infcmd.c $(defs_h) environ.h $(gdbcmd_h) $(gdbcore_h) \
*************** infptrace.o: infptrace.c $(defs_h) $(gdb
*** 1578,1584 ****
$(gdb_string_h) gdb_wait.h $(command_h) $(regcache_h)
infrun.o: infrun.c gdb_wait.h $(defs_h) $(gdbcmd_h) $(cli_script_h) \
! $(gdbcore_h) \
$(inferior_h) $(target_h) $(gdbthread_h) $(gdb_string_h) $(event_loop_h) \
$(event_top_h) $(regcache_h)
--- 1578,1584 ----
$(gdb_string_h) gdb_wait.h $(command_h) $(regcache_h)
infrun.o: infrun.c gdb_wait.h $(defs_h) $(gdbcmd_h) $(cli_script_h) \
! $(gdbcore_h) $(value_h) \
$(inferior_h) $(target_h) $(gdbthread_h) $(gdb_string_h) $(event_loop_h) \
$(event_top_h) $(regcache_h)
*************** ppc-linux-nat.o: ppc-linux-nat.c $(defs_
*** 1772,1778 ****
$(inferior_h) $(target_h) $(regcache_h)
ppc-linux-tdep.o: ppc-linux-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) \
! $(target_h) ppc-tdep.h $(regcache_h)
ppcbug-rom.o: ppcbug-rom.c monitor.h $(bfd_h) gdb_wait.h $(defs_h) \
$(gdbcmd_h) $(inferior_h) $(target_h) serial.h terminal.h $(regcache_h)
--- 1772,1778 ----
$(inferior_h) $(target_h) $(regcache_h)
ppc-linux-tdep.o: ppc-linux-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) \
! $(target_h) ppc-tdep.h $(regcache_h) $(value_h)
ppcbug-rom.o: ppcbug-rom.c monitor.h $(bfd_h) gdb_wait.h $(defs_h) \
$(gdbcmd_h) $(inferior_h) $(target_h) serial.h terminal.h $(regcache_h)
*************** remote-eb.o: remote-eb.c $(srcdir)/confi
*** 1848,1854 ****
remote-es.o: remote-es.c $(bfd_h) $(command_h) $(defs_h) \
$(inferior_h) $(remote_utils_h) terminal.h $(gdb_string_h) \
! $(symfile_h) $(regcache_h)
remote-est.o: remote-est.c $(defs_h) $(gdbcore_h) \
$(inferior_h) serial.h $(target_h) terminal.h $(regcache_h)
--- 1848,1854 ----
remote-es.o: remote-es.c $(bfd_h) $(command_h) $(defs_h) \
$(inferior_h) $(remote_utils_h) terminal.h $(gdb_string_h) \
! $(symfile_h) $(regcache_h) $(value_h)
remote-est.o: remote-est.c $(defs_h) $(gdbcore_h) \
$(inferior_h) serial.h $(target_h) terminal.h $(regcache_h)
*************** remote-utils.o: remote-utils.c $(defs_h)
*** 1906,1912 ****
remote.o: remote.c $(bfd_h) gdb_wait.h $(defs_h) $(gdbcmd_h) \
$(inferior_h) $(remote_utils_h) $(symfile_h) terminal.h $(gdb_string_h) \
! $(event_loop_h) $(event_top_h) $(remote_h) $(inf_loop_h)
remote-nrom.o: remote-nrom.c $(bfd_h) gdb_wait.h $(defs_h) $(gdbcmd_h) \
$(inferior_h) $(remote_utils_h) $(symfile_h) terminal.h
--- 1906,1912 ----
remote.o: remote.c $(bfd_h) gdb_wait.h $(defs_h) $(gdbcmd_h) \
$(inferior_h) $(remote_utils_h) $(symfile_h) terminal.h $(gdb_string_h) \
! $(event_loop_h) $(event_top_h) $(remote_h) $(inf_loop_h) $(value_h)
remote-nrom.o: remote-nrom.c $(bfd_h) gdb_wait.h $(defs_h) $(gdbcmd_h) \
$(inferior_h) $(remote_utils_h) $(symfile_h) terminal.h
*************** rs6000-nat.o: rs6000-nat.c $(bfd_h) $(de
*** 1920,1926 ****
$(regcache_h)
rs6000-tdep.o: rs6000-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) \
! $(target_h) ppc-tdep.h $(regcache_h)
scm-exp.o: $(defs_h) $(value_h) $(parser_defs_h) language.h c-lang.h \
scm-lang.h scm-tags.h
--- 1920,1926 ----
$(regcache_h)
rs6000-tdep.o: rs6000-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) \
! $(target_h) ppc-tdep.h $(regcache_h) $(value_h)
scm-exp.o: $(defs_h) $(value_h) $(parser_defs_h) language.h c-lang.h \
scm-lang.h scm-tags.h
*************** x86-64-linux-tdep.o : x86-64-linux-tdep.
*** 2083,2089 ****
$(regcache_h) x86-64-tdep.h i386-tdep.h
x86-64-tdep.o : x86-64-tdep.c $(defs_h) $(inferior_h) $(gdbcore_h) $(gdbcmd_h) \
! $(arch_utils_h) $(regcache_h) $(symfile_h) x86-64-tdep.h i386-tdep.h
x86-64-linux-tdep.o : x86-64-linux-tdep.c $(defs_h) $(inferior_h) $(gdbcore_h) \
$(regcache_h) i387-nat.h x86-64-tdep.h i386-tdep.h
--- 2083,2090 ----
$(regcache_h) x86-64-tdep.h i386-tdep.h
x86-64-tdep.o : x86-64-tdep.c $(defs_h) $(inferior_h) $(gdbcore_h) $(gdbcmd_h) \
! $(arch_utils_h) $(regcache_h) $(symfile_h) x86-64-tdep.h i386-tdep.h \
! $(value_h)
x86-64-linux-tdep.o : x86-64-linux-tdep.c $(defs_h) $(inferior_h) $(gdbcore_h) \
$(regcache_h) i387-nat.h x86-64-tdep.h i386-tdep.h
Index: arm-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/arm-tdep.c,v
retrieving revision 1.15
diff -p -r1.15 arm-tdep.c
*** arm-tdep.c 2001/08/21 04:31:32 1.15
--- arm-tdep.c 2001/10/21 17:06:49
***************
*** 31,36 ****
--- 31,37 ----
#include <ctype.h> /* for isupper () */
#include "regcache.h"
#include "doublest.h"
+ #include "value.h"
/* Each OS has a different mechanism for accessing the various
registers stored in the sigcontext structure.
Index: exec.c
===================================================================
RCS file: /cvs/src/src/gdb/exec.c,v
retrieving revision 1.13
diff -p -r1.13 exec.c
*** exec.c 2001/03/22 23:58:37 1.13
--- exec.c 2001/10/21 17:06:50
***************
*** 29,34 ****
--- 29,35 ----
#include "symfile.h"
#include "objfiles.h"
#include "completer.h"
+ #include "value.h"
#ifdef USG
#include <sys/types.h>
Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.82
diff -p -r1.82 gdbarch.sh
*** gdbarch.sh 2001/10/15 21:38:44 1.82
--- gdbarch.sh 2001/10/21 17:06:54
*************** cat <<EOF
*** 632,637 ****
--- 632,640 ----
#define GDBARCH_H
#include "dis-asm.h" /* Get defs for disassemble_info, which unfortunately is a typedef. */
+ #if !GDB_MULTI_ARCH
+ #include "value.h" /* For default_coerce_float_to_double which is referenced by a macro. */
+ #endif
struct frame_info;
struct value;
*************** cat <<EOF
*** 1127,1132 ****
--- 1130,1136 ----
#include "gdbthread.h"
#include "annotate.h"
#include "symfile.h" /* for overlay functions */
+ #include "value.h" /* For old tm.h/nm.h macros. */
#endif
#include "symcat.h"
Index: i386-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-tdep.c,v
retrieving revision 1.38
diff -p -r1.38 i386-tdep.c
*** i386-tdep.c 2001/08/01 18:39:23 1.38
--- i386-tdep.c 2001/10/21 17:06:55
***************
*** 33,38 ****
--- 33,39 ----
#include "arch-utils.h"
#include "regcache.h"
#include "doublest.h"
+ #include "value.h"
#include "gdb_assert.h"
Index: ia64-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/ia64-tdep.c,v
retrieving revision 1.23
diff -p -r1.23 ia64-tdep.c
*** ia64-tdep.c 2001/08/31 19:58:40 1.23
--- ia64-tdep.c 2001/10/21 17:06:55
***************
*** 27,32 ****
--- 27,33 ----
#include "floatformat.h"
#include "regcache.h"
#include "doublest.h"
+ #include "value.h"
#include "objfiles.h"
#include "elf/common.h" /* for DT_PLTGOT value */
Index: infrun.c
===================================================================
RCS file: /cvs/src/src/gdb/infrun.c,v
retrieving revision 1.46
diff -p -r1.46 infrun.c
*** infrun.c 2001/08/15 15:29:56 1.46
--- infrun.c 2001/10/21 17:06:57
***************
*** 38,43 ****
--- 38,44 ----
#include <signal.h>
#include "inf-loop.h"
#include "regcache.h"
+ #include "value.h"
/* Prototypes for local functions */
Index: ppc-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/ppc-linux-tdep.c,v
retrieving revision 1.9
diff -p -r1.9 ppc-linux-tdep.c
*** ppc-linux-tdep.c 2001/07/15 20:10:02 1.9
--- ppc-linux-tdep.c 2001/10/21 17:06:57
***************
*** 30,35 ****
--- 30,36 ----
#include "symfile.h"
#include "objfiles.h"
#include "regcache.h"
+ #include "value.h"
#include "ppc-tdep.h"
Index: remote-es.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-es.c,v
retrieving revision 1.18
diff -p -r1.18 remote-es.c
*** remote-es.c 2001/07/15 20:34:13 1.18
--- remote-es.c 2001/10/21 17:06:57
***************
*** 111,116 ****
--- 111,117 ----
#include "gdbcore.h"
#include "serial.h"
#include "regcache.h"
+ #include "value.h"
/* Prototypes for local functions */
Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.63
diff -p -r1.63 remote.c
*** remote.c 2001/09/30 16:16:16 1.63
--- remote.c 2001/10/21 17:06:58
***************
*** 36,41 ****
--- 36,42 ----
#include "gdbthread.h"
#include "remote.h"
#include "regcache.h"
+ #include "value.h"
#include <ctype.h>
#include <sys/time.h>
Index: rs6000-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/rs6000-tdep.c,v
retrieving revision 1.27
diff -p -r1.27 rs6000-tdep.c
*** rs6000-tdep.c 2001/09/29 21:32:01 1.27
--- rs6000-tdep.c 2001/10/21 17:06:59
***************
*** 32,37 ****
--- 32,38 ----
#include "arch-utils.h"
#include "regcache.h"
#include "doublest.h"
+ #include "value.h"
#include "bfd/libbfd.h" /* for bfd_default_set_arch_mach */
#include "coff/internal.h" /* for libcoff.h */
Index: s390-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/s390-tdep.c,v
retrieving revision 1.2
diff -p -r1.2 s390-tdep.c
*** s390-tdep.c 2001/10/13 22:13:35 1.2
--- s390-tdep.c 2001/10/21 17:06:59
***************
*** 35,41 ****
#include "../bfd/bfd.h"
#include "floatformat.h"
#include "regcache.h"
!
--- 35,41 ----
#include "../bfd/bfd.h"
#include "floatformat.h"
#include "regcache.h"
! #include "value.h"
Index: x86-64-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/x86-64-tdep.c,v
retrieving revision 1.1
diff -p -r1.1 x86-64-tdep.c
*** x86-64-tdep.c 2001/09/21 12:19:15 1.1
--- x86-64-tdep.c 2001/10/21 17:06:59
***************
*** 29,34 ****
--- 29,35 ----
#include "symfile.h"
#include "x86-64-tdep.h"
#include "dwarf2cfi.h"
+ #include "value.h"
/* Register numbers of various important registers. */
Index: config/a29k/tm-vx29k.h
===================================================================
RCS file: /cvs/src/src/gdb/config/a29k/tm-vx29k.h,v
retrieving revision 1.4
diff -p -r1.4 tm-vx29k.h
*** tm-vx29k.h 2001/03/14 23:23:08 1.4
--- tm-vx29k.h 2001/10/21 17:06:59
***************
*** 20,25 ****
--- 20,26 ----
Boston, MA 02111-1307, USA. */
#include "regcache.h"
+ #include "value.h"
#include "a29k/tm-a29k.h"
#include "tm-vxworks.h"
Index: tui/tuiDisassem.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tuiDisassem.c,v
retrieving revision 1.9
diff -p -r1.9 tuiDisassem.c
*** tuiDisassem.c 2001/08/02 11:58:29 1.9
--- tuiDisassem.c 2001/10/21 17:07:01
***************
*** 23,28 ****
--- 23,29 ----
#include "symtab.h"
#include "breakpoint.h"
#include "frame.h"
+ #include "value.h"
#include "tui.h"
#include "tuiData.h"
Index: tui/tuiSourceWin.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tuiSourceWin.c,v
retrieving revision 1.8
diff -p -r1.8 tuiSourceWin.c
*** tuiSourceWin.c 2001/08/02 11:58:29 1.8
--- tuiSourceWin.c 2001/10/21 17:07:01
***************
*** 24,29 ****
--- 24,30 ----
#include "symtab.h"
#include "frame.h"
#include "breakpoint.h"
+ #include "value.h"
#include "tui.h"
#include "tuiData.h"