diff options
author | Tom Tromey <tromey@redhat.com> | 2008-08-05 20:41:16 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2008-08-05 20:41:16 +0000 |
commit | 11d31d9471cd17e3256b5583a79a7889c4fce645 (patch) | |
tree | 5cd66e0b659b971d44f57433554b08010bdd44b7 /gdb/bcache.h | |
parent | 4094fdc2084d7c9b9bec9f00354c946c739e1d4f (diff) | |
download | gdb-11d31d9471cd17e3256b5583a79a7889c4fce645.zip gdb-11d31d9471cd17e3256b5583a79a7889c4fce645.tar.gz gdb-11d31d9471cd17e3256b5583a79a7889c4fce645.tar.bz2 |
* 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.h')
-rw-r--r-- | gdb/bcache.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/bcache.h b/gdb/bcache.h index a49d729..b56cf3b 100644 --- a/gdb/bcache.h +++ b/gdb/bcache.h @@ -145,13 +145,15 @@ struct bcache; either case, return a pointer to BCACHE's copy of that string. Since the cached value is ment to be read-only, return a const buffer. */ -extern void *deprecated_bcache (const void *addr, int length, - struct bcache *bcache); extern const void *bcache (const void *addr, int length, struct bcache *bcache); -extern void *deprecated_bcache_added (const void *addr, int length, - struct bcache *bcache, int *added); +/* Like bcache, but if ADDED is not NULL, set *ADDED to true if the + bytes were newly added to the cache, or to false if the bytes were + found in the cache. */ +extern const void *bcache_full (const void *addr, int length, + struct bcache *bcache, int *added); + /* Free all the storage used by BCACHE. */ extern void bcache_xfree (struct bcache *bcache); |