From 24418cfbac29d947c943d05c14a00e918cff79d7 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Fri, 16 Oct 1998 21:45:06 +0000 Subject: 1998-10-16 Jason Molenda (jsm@bugshack.cygnus.com) * command.c copying.c copying.awk core-aout.c core-regset.c corelow.c dcache.c i386-tdep.c i386v4-nat.c i387-tdep.c infcmd.c infptrace.c infrun.c remote.c solib.c symfile.c symmisc.c valarith.c: Add prototypes. * defs.h: Add prototype for utils.c::do_run_cleanups. * gdbtypes.c: Add prototypes. (make_pointer_type): Add braces to remove nested if-else ambiguity. (make_reference_type): Ditto. * printcmd.c (printf_command): Initialize 'f' and 'string' at function startup to suppress possibly-used-before-initialized warning. * remote-utils.c: Add prototypes. (sr_pollchar): Add braces to remove nested if-else ambiguity. * ser-tcp.c: Add prototypes. (wait_for): Add braces to remove nested if-else ambiguity. (tcp_readchar): Ditto. * ser-unix.c: Add prototypes. (get_tty_state): Don't define errno here. (get_tty_state): Don't define errno here. (hardwire_readchar): Only define 't' if we are compiling in a Cygwin environment. * symtab.c: Add prototypes. (find_methods): Add braces to remove nested if-else ambiguity. (search_symbols): Set 'i' to an initial value to suppress a possibly-used-before-initialized warning. * valops.c: Add prototypes. (value_cast): Set 'eltype2' to an initial value to suppress a possibly-used-before-initialized warning. (value_of_variable): Add braces to remove nested if-else ambiguity. (value_of_this): Ditto. * valprint.c: Add prototypes. (print_floating): Add braces to remove nested if-else ambiguity. Looks like a big change, but it is really just a lot of small stuff. In the cases where GCC was flagging a possible use-before-initialized warning on variables, it turned out that these were being used properly but GCC couldn't see that. --- gdb/i386v4-nat.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'gdb/i386v4-nat.c') diff --git a/gdb/i386v4-nat.c b/gdb/i386v4-nat.c index 965f632..ea84c65 100644 --- a/gdb/i386v4-nat.c +++ b/gdb/i386v4-nat.c @@ -1,5 +1,5 @@ /* Native-dependent code for SVR4 Unix running on i386's, for GDB. - Copyright 1988, 1989, 1991, 1992, 1996 Free Software Foundation, Inc. + Copyright 1988, 1989, 1991, 1992, 1996, 1998 Free Software Foundation, Inc. This file is part of GDB. @@ -18,11 +18,13 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "defs.h" +#include "value.h" #ifdef HAVE_SYS_REG_H #include #endif + #ifdef HAVE_SYS_PROCFS_H #include @@ -83,6 +85,16 @@ static int regmap[] = DS, ES, FS, GS, }; +/* Prototypes for local functions */ + +void fill_gregset PARAMS ((gregset_t *, int)); + +void supply_gregset PARAMS ((gregset_t *)); + +void supply_fpregset PARAMS ((fpregset_t *)); + +void fill_fpregset PARAMS ((fpregset_t *, int)); + /* FIXME: These routine absolutely depends upon (NUM_REGS - NUM_FREGS) being less than or equal to the number of registers that can be stored -- cgit v1.1