aboutsummaryrefslogtreecommitdiff
path: root/gdb/bcache.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2020-09-01 12:54:38 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2020-09-01 12:55:57 -0400
commitef5e5b0b6534bed8e9dcd6494acf3f8ee418f8e5 (patch)
tree9b864d1f92574dd5b51d29e7cc4bac2dd2555404 /gdb/bcache.h
parent4c8584be76a2b95cd4876ac8622cb0f2d0fc1ad4 (diff)
downloadfsf-binutils-gdb-ef5e5b0b6534bed8e9dcd6494acf3f8ee418f8e5.zip
fsf-binutils-gdb-ef5e5b0b6534bed8e9dcd6494acf3f8ee418f8e5.tar.gz
fsf-binutils-gdb-ef5e5b0b6534bed8e9dcd6494acf3f8ee418f8e5.tar.bz2
gdb: change bcache::insert `added` parameter to bool
It is currently an int, but it is used as a bool. gdb/ChangeLog: * bcache.h (struct bcache) <insert>: Change type of `added` to pointer to bool. * bcache.c (bcache::insert): Likewise. * gdbtypes.c (check_types_worklist): Adjust. * psymtab.c (add_psymbol_to_bcache): Adjust. Change-Id: I06b1041636c656782a89cb6106c9ae2593f61616
Diffstat (limited to 'gdb/bcache.h')
-rw-r--r--gdb/bcache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/bcache.h b/gdb/bcache.h
index 9293756..d8b18dc 100644
--- a/gdb/bcache.h
+++ b/gdb/bcache.h
@@ -161,12 +161,12 @@ 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.
- Since the cached value is ment to be read-only, return a const
+ Since the cached value is meant to be read-only, return a const
buffer. 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. */
- const void *insert (const void *addr, int length, int *added = nullptr);
+ const void *insert (const void *addr, int length, bool *added = nullptr);
/* Print statistics on this bcache's memory usage and efficacity at
eliminating duplication. TYPE should be a string describing the