aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-05-12 11:17:01 -0400
committerSimon Marchi <simon.marchi@efficios.com>2020-05-12 11:17:01 -0400
commit02ff80c296ea525e1c89fe3bd41e29cc249595f0 (patch)
tree207c960cda2aeab395970993c3f5bfb5ca46ebb8 /gdb/objfiles.h
parentc7c663418085fa497603bb04bb146a70010aade1 (diff)
downloadfsf-binutils-gdb-02ff80c296ea525e1c89fe3bd41e29cc249595f0.zip
fsf-binutils-gdb-02ff80c296ea525e1c89fe3bd41e29cc249595f0.tar.gz
fsf-binutils-gdb-02ff80c296ea525e1c89fe3bd41e29cc249595f0.tar.bz2
gdb: make two objfile functions return bool
gdb/ChangeLog: * objfiles.h (is_addr_in_objfile, shared_objfile_contains_address_p): Return bool. * objfile.c (is_addr_in_objfile, shared_objfile_contains_address_p): Return bool.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r--gdb/objfiles.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index 77f94e4..0b47bd0 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -741,13 +741,16 @@ extern void objfile_set_sym_fns (struct objfile *objfile,
extern void objfiles_changed (void);
-extern int is_addr_in_objfile (CORE_ADDR addr, const struct objfile *objfile);
+/* Return true if ADDR maps into one of the sections of OBJFILE and false
+ otherwise. */
+
+extern bool is_addr_in_objfile (CORE_ADDR addr, const struct objfile *objfile);
/* Return true if ADDRESS maps into one of the sections of a
OBJF_SHARED objfile of PSPACE and false otherwise. */
-extern int shared_objfile_contains_address_p (struct program_space *pspace,
- CORE_ADDR address);
+extern bool shared_objfile_contains_address_p (struct program_space *pspace,
+ CORE_ADDR address);
/* This operation deletes all objfile entries that represent solibs that
weren't explicitly loaded by the user, via e.g., the add-symbol-file