aboutsummaryrefslogtreecommitdiff
path: root/gdb/bcache.c
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1998-10-14 23:44:13 +0000
committerJason Molenda <jmolenda@apple.com>1998-10-14 23:44:13 +0000
commit879c041771ae0fcd6a58373b926c31df992af1ab (patch)
tree4d1ba0c8d464a28ed36382223c68100028909810 /gdb/bcache.c
parentaad579b0308d17e8d0ae39b2c175a926531f7378 (diff)
downloadgdb-879c041771ae0fcd6a58373b926c31df992af1ab.zip
gdb-879c041771ae0fcd6a58373b926c31df992af1ab.tar.gz
gdb-879c041771ae0fcd6a58373b926c31df992af1ab.tar.bz2
1998-10-14 Jason Molenda (jsm@bugshack.cygnus.com)
* defs.h: Move _initialize_printcmd, _initialize_stack, _initialize_blockframe out of here and in to their respective .c files. * blockframe.c: Move _initialize_blockframe prototype to here. * printcmd.c: Move _initialize_printcmd prototype to here. * stack.c: Move _initialize_stack prototype to here. * source.c, symtab.h: Move _initialize_source prototype to the .c file. * values.c, value.h: Move _initialize_values prototype to the .c file. * gdbthread.h, thread.c: Move _initialize_thread prototype to the .c file. * breakpoint.c, breakpoint.h: Move _initialize_breakpoint prototype to the .c file. * abug-rom.c alpha-nat.c alpha-tdep.c annotate.c ax-gdb.c bcache.c: Standardize comments for the prototype section of these files. * configure.in: Look in libc for wctype before looking for it in libc. The last one is to fix the GNU ld (~2.9.1) + Solaris 2.6 interaction problem where an empty stub library (libw) causes a core dump when we call vasprintf (e.g. `info br') in the final linked gdb.
Diffstat (limited to 'gdb/bcache.c')
-rw-r--r--gdb/bcache.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/bcache.c b/gdb/bcache.c
index 377355b..d28515b 100644
--- a/gdb/bcache.c
+++ b/gdb/bcache.c
@@ -1,6 +1,6 @@
/* Implement a cached obstack.
Written by Fred Fish (fnf@cygnus.com)
- Copyright 1995 Free Software Foundation, Inc.
+ Copyright 1995, 1998 Free Software Foundation, Inc.
This file is part of GDB.
@@ -23,7 +23,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "bcache.h"
#include "gdb_string.h" /* For memcpy declaration */
+/* Prototypes for local functions. */
+
static unsigned int hash PARAMS ((void *, int));
+
static void *lookup_cache PARAMS ((void *, int, int, struct bcache *));
/* FIXME: Incredibly simplistic hash generator. Probably way too expensive