diff options
author | Tom Tromey <tromey@redhat.com> | 2008-08-05 20:41:15 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2008-08-05 20:41:15 +0000 |
commit | da3f7c65d4eec103b10f09031d06691b2d40e4a9 (patch) | |
tree | bfb95b383ef59c56ee3ed24471c6f542330536dd /gdb/bcache.c | |
parent | 2ad509f37a5079e543c600d74a7675b02f5af566 (diff) | |
download | gdb-da3f7c65d4eec103b10f09031d06691b2d40e4a9.tar.gz |
* symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
bcache_full.
(append_psymbol_to_list): Accept a const pointer.
(add_psymbol_to_list): Fix const correctness.
* bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
(bcache_full): Declare.
* bcache.c (bcache_data, deprecated_bcache): Remove.
(bcache): Use bcache_full.
(bcache_full): Rename from deprecated_bcache_added. Change return
type.
Diffstat (limited to 'gdb/bcache.c')
-rw-r--r-- | gdb/bcache.c | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/gdb/bcache.c b/gdb/bcache.c index 9f7a9152519..589de6a252c 100644 --- a/gdb/bcache.c +++ b/gdb/bcache.c @@ -194,23 +194,10 @@ expand_hash_table (struct bcache *bcache) /* Find a copy of the LENGTH bytes at ADDR in BCACHE. If BCACHE has never seen those bytes before, add a copy of them to BCACHE. In either case, return a pointer to BCACHE's copy of that string. */ -static void * -bcache_data (const void *addr, int length, struct bcache *bcache) -{ - return deprecated_bcache_added (addr, length, bcache, NULL); -} - - -void * -deprecated_bcache (const void *addr, int length, struct bcache *bcache) -{ - return bcache_data (addr, length, bcache); -} - const void * bcache (const void *addr, int length, struct bcache *bcache) { - return bcache_data (addr, length, bcache); + return bcache_full (addr, length, bcache, NULL); } /* Find a copy of the LENGTH bytes at ADDR in BCACHE. If BCACHE has @@ -219,9 +206,8 @@ bcache (const void *addr, int length, struct bcache *bcache) optional ADDED is not NULL, return 1 in case of new entry or 0 if returning an old entry. */ -void * -deprecated_bcache_added (const void *addr, int length, struct bcache *bcache, - int *added) +const void * +bcache_full (const void *addr, int length, struct bcache *bcache, int *added) { unsigned long full_hash; unsigned short half_hash; |