mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 10:00:51 +00:00
* 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.
This commit is contained in:
10
gdb/bcache.h
10
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user