aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-07-12 15:23:10 +0000
committerAndrew Cagney <cagney@redhat.com>2002-07-12 15:23:10 +0000
commitaf5f3db67c5dcbbc7b2038fe781d03301b94783d (patch)
tree458bedb8fa453f6b845b5ff34fa7874edb6b499c /gdb/objfiles.h
parent120d20f2664d24f5080a5578f8ff93c10f4a8a9c (diff)
downloadfsf-binutils-gdb-af5f3db67c5dcbbc7b2038fe781d03301b94783d.zip
fsf-binutils-gdb-af5f3db67c5dcbbc7b2038fe781d03301b94783d.tar.gz
fsf-binutils-gdb-af5f3db67c5dcbbc7b2038fe781d03301b94783d.tar.bz2
* bcache.h: Update copyright.
(struct bstring, struct bcache): Move definition to "bcache.c". Replaced by opaque declaration. (bcache_xfree): Replace free_bcache. (bcache_xmalloc, bcache_memory_used): Declare. * bcache.c: Update copyright. (struct bstring, struct bcache): Moved to here from "bcache.h". Update comments. (bcache_xmalloc, bcache_memory_used): New functions. (bcache_xfree): Replace function free_bcache. * Makefile.in (objfiles.o): Add $(bcache_h). (objfiles_h): Remove $(bcache_h). (symfile.o): Add $(bcache_h). * symmisc.c: Update copyright. (print_symbol_bcache_statistics): Pass psymbol_cache by value. (print_objfile_statistics): Use bcache_memory_used. * symfile.c: Include "bcache.h". (reread_symbols): Use bcache_xfree. (reread_symbols): Use bcache_xmalloc and bcache_xfree. (add_psymbol_to_list): Pass psymbol_cache by value. (add_psymbol_with_dem_name_to_list): Ditto. * objfiles.h: Update copyright. (struct bcache): Declare opaque. Do not include "bcache.h". (struct objfile): Change psymbol_cache and macro_cache to ``struct bcache'' pointers. * dwarf2read.c (macro_start_file): Pass macro_cache by value. * objfiles.c: Include "bcache.h". Update copyright. (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and macro_cache. (free_objfile): Use bcache_xfree.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r--gdb/objfiles.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index b04abc1..8e2c81b 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -1,6 +1,7 @@
/* Definitions for symbol file management in GDB.
- Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
- Free Software Foundation, Inc.
+
+ Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
+ 2001, 2002 Free Software Foundation, Inc.
This file is part of GDB.
@@ -22,7 +23,7 @@
#if !defined (OBJFILES_H)
#define OBJFILES_H
-#include "bcache.h"
+struct bcache;
/* This structure maintains information on a per-objfile basis about the
"entry point" of the objfile, and the scope within which the entry point
@@ -278,8 +279,8 @@ struct objfile
/* A byte cache where we can stash arbitrary "chunks" of bytes that
will not change. */
- struct bcache psymbol_cache; /* Byte cache for partial syms */
- struct bcache macro_cache; /* Byte cache for macros */
+ struct bcache *psymbol_cache; /* Byte cache for partial syms */
+ struct bcache *macro_cache; /* Byte cache for macros */
/* Vectors of all partial symbols read in from file. The actual data
is stored in the psymbol_obstack. */