aboutsummaryrefslogtreecommitdiff
path: root/gdb/minsyms.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2016-10-14 15:19:03 -0600
committerTom Tromey <tom@tromey.com>2016-10-21 14:17:39 -0600
commitce6c454e5acbaec4e0c22e9c8af0fe7686a53baa (patch)
tree4f96acad23e5e9aad731e56b6360d891bf3eed1e /gdb/minsyms.c
parentf60ee22ea1d62f7004511ec65a3ad76890032d88 (diff)
Change minimal_symbol_reader::record_full to take a bool
This changes an "int" to a "bool" in the signature for minimal_symbol_reader::record_full, and then fixes the callers. 2016-10-21 Tom Tromey <tom@tromey.com> * minsyms.h (minimal_symbol_reader::record_full): "copy_name" now a bool. (record, record_with_info): Update. * minsyms.c (record): Fix indentation. (record_full): Fix indentation. Update for type change. * elfread.c (record_minimal_symbol): "copy_name" now a bool. (elf_symtab_read): "copy_names" now a bool. (elf_rel_plt_read, elf_read_minimal_symbols): Update.
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r--gdb/minsyms.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c
index 5f6db60eca..d804c95aa8 100644
--- a/gdb/minsyms.c
+++ b/gdb/minsyms.c
@@ -943,7 +943,7 @@ minimal_symbol_reader::~minimal_symbol_reader ()
void
minimal_symbol_reader::record (const char *name, CORE_ADDR address,
- enum minimal_symbol_type ms_type)
+ enum minimal_symbol_type ms_type)
{
int section;
@@ -974,10 +974,9 @@ minimal_symbol_reader::record (const char *name, CORE_ADDR address,
struct minimal_symbol *
minimal_symbol_reader::record_full (const char *name, int name_len,
- int copy_name,
- CORE_ADDR address,
- enum minimal_symbol_type ms_type,
- int section)
+ bool copy_name, CORE_ADDR address,
+ enum minimal_symbol_type ms_type,
+ int section)
{
struct msym_bunch *newobj;
struct minimal_symbol *msymbol;