diff options
author | Tom Tromey <tromey@adacore.com> | 2022-12-16 13:25:48 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-05-12 13:25:28 -0600 |
commit | 47ef0ac717f93b330dc475647f069bf64f7da862 (patch) | |
tree | fa5635dc5ab9f95cffe81bd1cf4f6f31f6eda308 /gdb/minsyms.h | |
parent | efe2296bde30c22124ed31b70b7d860339927471 (diff) | |
download | fsf-binutils-gdb-47ef0ac717f93b330dc475647f069bf64f7da862.zip fsf-binutils-gdb-47ef0ac717f93b330dc475647f069bf64f7da862.tar.gz fsf-binutils-gdb-47ef0ac717f93b330dc475647f069bf64f7da862.tar.bz2 |
Introduce lookup_minimal_symbol_linkage
This introduces a new function, lookup_minimal_symbol_linkage, and
refactors a couple other existing functions to call it. This function
will be used in a subsequent patch.
Diffstat (limited to 'gdb/minsyms.h')
-rw-r--r-- | gdb/minsyms.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/minsyms.h b/gdb/minsyms.h index 59c276f..f3a2474 100644 --- a/gdb/minsyms.h +++ b/gdb/minsyms.h @@ -236,6 +236,14 @@ extern struct bound_minimal_symbol lookup_minimal_symbol_linkage (const char *name, struct objfile *objf) ATTRIBUTE_NONNULL (1) ATTRIBUTE_NONNULL (2); +/* A variant of lookup_minimal_symbol_linkage that iterates over all + objfiles. If ONLY_MAIN is true, then only an objfile with + OBJF_MAINLINE will be considered. */ + +extern struct bound_minimal_symbol lookup_minimal_symbol_linkage + (const char *name, bool only_main) + ATTRIBUTE_NONNULL (1); + /* Look through all the current minimal symbol tables and find the first minimal symbol that matches NAME and PC. If OBJF is non-NULL, limit the search to that objfile. Returns a pointer to the minimal |