diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-11-15 19:39:04 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-11-15 19:39:04 +0000 |
commit | 3a16a68c4f0cdabb4c9a77ffd7b70f2c78d54e98 (patch) | |
tree | c28d565468b2d0f3db2e55760afa785a0e7d2f09 /gdb/bcache.h | |
parent | 38cf6e11c7b688e6f83457079c490a73cc43cca2 (diff) | |
download | binutils-3a16a68c4f0cdabb4c9a77ffd7b70f2c78d54e98.zip binutils-3a16a68c4f0cdabb4c9a77ffd7b70f2c78d54e98.tar.gz binutils-3a16a68c4f0cdabb4c9a77ffd7b70f2c78d54e98.tar.bz2 |
2003-11-15 Andrew Cagney <cagney@redhat.com>
* bcache.h (deprecated_bcache): Declare.
(bcache): Make returned buffer constant.
* bcache.c (deprecated_bcache): New function.
(bcache_data): New function.
(bcache): Call bcache data.
* symfile.c (add_psymbol_to_list): Use deprecated_bcache.
(add_psymbol_with_dem_name_to_list): Ditto.
Diffstat (limited to 'gdb/bcache.h')
-rw-r--r-- | gdb/bcache.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/bcache.h b/gdb/bcache.h index 6c3a63d..bf69853 100644 --- a/gdb/bcache.h +++ b/gdb/bcache.h @@ -143,8 +143,13 @@ struct 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. */ -extern void *bcache (const void *addr, int length, struct bcache *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); /* Free all the storage used by BCACHE. */ extern void bcache_xfree (struct bcache *bcache); |