From: Andrew Cagney Date: Sun, 21 Oct 2001 17:19:38 +0000 (+0000) Subject: Add explicit #include of "value.h". X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fd0407d670c5a89ba5ba8cba65a056ac8c709e75;p=binutils-gdb.git Add explicit #include of "value.h". --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 431cc3dad67..820cce04b35 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,15 @@ +2001-10-21 Andrew Cagney + + * 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. + 2001-10-21 Mark Kettenis * infptrace.c (child_xfer_memory): Fix a few coding standards diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 14ca4e09662..b94aff470fb 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1220,7 +1220,7 @@ arm-linux-tdep.o: arm-linux-tdep.c $(defs_h) $(target_h) $(value_h) \ $(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) + $(gdbcore_h) $(regcache_h) $(doublest_h) $(value_h) bcache.o: bcache.c bcache.h $(defs_h) @@ -1352,7 +1352,7 @@ inf-loop.o: inf-loop.c $(defs_h) $(inferior_h) $(inf_loop_h) $(event_loop_h) \ $(event_top_h) exec.o: exec.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) $(inferior_h) \ - $(target_h) language.h $(gdb_string_h) $(completer_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) @@ -1513,7 +1513,7 @@ i386gnu-nat.o: gnu-nat.h 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) + $(doublest_h) $(value_h) i386-nat.o: i386-nat.c $(defs_h) $(breakpoint_h) $(command_h) $(gdbcmd_h) @@ -1564,7 +1564,7 @@ ia64-linux-nat.o: ia64-linux-nat.c $(defs_h) $(inferior_h) $(target_h) \ 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 \ + $(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) \ @@ -1578,7 +1578,7 @@ infptrace.o: infptrace.c $(defs_h) $(gdbcore_h) $(inferior_h) $(target_h) \ $(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) \ + $(gdbcore_h) $(value_h) \ $(inferior_h) $(target_h) $(gdbthread_h) $(gdb_string_h) $(event_loop_h) \ $(event_top_h) $(regcache_h) @@ -1772,7 +1772,7 @@ ppc-linux-nat.o: ppc-linux-nat.c $(defs_h) $(gdbcore_h) $(frame_h) \ $(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) + $(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) @@ -1848,7 +1848,7 @@ remote-eb.o: remote-eb.c $(srcdir)/config/a29k/tm-a29k.h \ 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) + $(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) @@ -1906,7 +1906,7 @@ remote-utils.o: remote-utils.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \ 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) + $(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 @@ -1920,7 +1920,7 @@ rs6000-nat.o: rs6000-nat.c $(bfd_h) $(defs_h) $(inferior_h) $(target_h) \ $(regcache_h) rs6000-tdep.o: rs6000-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) \ - $(target_h) ppc-tdep.h $(regcache_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 @@ -2083,7 +2083,8 @@ x86-64-linux-tdep.o : x86-64-linux-tdep.c $(defs_h) $(inferior_h) $(gdbcore_h) \ $(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 + $(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 diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 1cb42a3702b..d220e3d1ff7 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -31,6 +31,7 @@ #include /* 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. diff --git a/gdb/config/a29k/tm-vx29k.h b/gdb/config/a29k/tm-vx29k.h index 34bd17c145f..fb6ecb3fd50 100644 --- a/gdb/config/a29k/tm-vx29k.h +++ b/gdb/config/a29k/tm-vx29k.h @@ -20,6 +20,7 @@ Boston, MA 02111-1307, USA. */ #include "regcache.h" +#include "value.h" #include "a29k/tm-a29k.h" #include "tm-vxworks.h" diff --git a/gdb/exec.c b/gdb/exec.c index 511977f5703..24048f70b13 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -29,6 +29,7 @@ #include "symfile.h" #include "objfiles.h" #include "completer.h" +#include "value.h" #ifdef USG #include diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 4dceeac2cdc..e5b6c45a58f 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -55,6 +55,7 @@ #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" diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 2a9fe711791..26ae3aa77f5 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -36,6 +36,9 @@ #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; diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index f5855f88c43..d1354d9dccb 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -632,6 +632,9 @@ cat < #include "inf-loop.h" #include "regcache.h" +#include "value.h" /* Prototypes for local functions */ diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c index 68846bdbbef..06fc2943d9b 100644 --- a/gdb/ppc-linux-tdep.c +++ b/gdb/ppc-linux-tdep.c @@ -30,6 +30,7 @@ #include "symfile.h" #include "objfiles.h" #include "regcache.h" +#include "value.h" #include "ppc-tdep.h" diff --git a/gdb/remote-es.c b/gdb/remote-es.c index ff12e88677a..c315f375f04 100644 --- a/gdb/remote-es.c +++ b/gdb/remote-es.c @@ -111,6 +111,7 @@ #include "gdbcore.h" #include "serial.h" #include "regcache.h" +#include "value.h" /* Prototypes for local functions */ diff --git a/gdb/remote.c b/gdb/remote.c index 0555088bdf4..e7b7169a2ac 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -36,6 +36,7 @@ #include "gdbthread.h" #include "remote.h" #include "regcache.h" +#include "value.h" #include #include diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 82c18c1dac2..12c6ed59b61 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -32,6 +32,7 @@ #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 */ diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c index 159026806ee..0be848c2e0a 100644 --- a/gdb/s390-tdep.c +++ b/gdb/s390-tdep.c @@ -35,7 +35,7 @@ #include "../bfd/bfd.h" #include "floatformat.h" #include "regcache.h" - +#include "value.h" diff --git a/gdb/tui/ChangeLog b/gdb/tui/ChangeLog index 2771d3aaa3b..62ebed57687 100644 --- a/gdb/tui/ChangeLog +++ b/gdb/tui/ChangeLog @@ -1,3 +1,8 @@ +2001-10-20 Andrew Cagney + + * tuiDisassem.c: Include "value.h". + * tuiSourceWin.c: Ditto. + 2001-09-28 Tom Tromey * tuiLayout.h (tui_set_layout): Don't declare. diff --git a/gdb/tui/tuiDisassem.c b/gdb/tui/tuiDisassem.c index 9766bbb6fb7..f7c3c6bc8a2 100644 --- a/gdb/tui/tuiDisassem.c +++ b/gdb/tui/tuiDisassem.c @@ -23,6 +23,7 @@ #include "symtab.h" #include "breakpoint.h" #include "frame.h" +#include "value.h" #include "tui.h" #include "tuiData.h" diff --git a/gdb/tui/tuiSourceWin.c b/gdb/tui/tuiSourceWin.c index 1fb0ddf2fdd..388ec3e7746 100644 --- a/gdb/tui/tuiSourceWin.c +++ b/gdb/tui/tuiSourceWin.c @@ -24,6 +24,7 @@ #include "symtab.h" #include "frame.h" #include "breakpoint.h" +#include "value.h" #include "tui.h" #include "tuiData.h" diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c index d51e0e988e7..06aef951ce1 100644 --- a/gdb/x86-64-tdep.c +++ b/gdb/x86-64-tdep.c @@ -29,6 +29,7 @@ #include "symfile.h" #include "x86-64-tdep.h" #include "dwarf2cfi.h" +#include "value.h" /* Register numbers of various important registers. */