aboutsummaryrefslogtreecommitdiff
path: root/gdb/minsyms.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/minsyms.h')
-rw-r--r--gdb/minsyms.h47
1 files changed, 19 insertions, 28 deletions
diff --git a/gdb/minsyms.h b/gdb/minsyms.h
index e908149..0f95412 100644
--- a/gdb/minsyms.h
+++ b/gdb/minsyms.h
@@ -83,7 +83,7 @@ struct msym_bunch;
they are being read. */
class minimal_symbol_reader
{
- public:
+public:
/* Prepare to start collecting minimal symbols. This should be
called by a symbol reader to initialize the minimal symbol
@@ -118,8 +118,7 @@ class minimal_symbol_reader
SECTION - the symbol's section
*/
- struct minimal_symbol *record_full (gdb::string_view name,
- bool copy_name,
+ struct minimal_symbol *record_full (gdb::string_view name, bool copy_name,
CORE_ADDR address,
enum minimal_symbol_type ms_type,
int section);
@@ -141,13 +140,12 @@ class minimal_symbol_reader
This variant does not return the new symbol. */
void record_with_info (const char *name, CORE_ADDR address,
- enum minimal_symbol_type ms_type,
- int section)
+ enum minimal_symbol_type ms_type, int section)
{
record_full (name, true, address, ms_type, section);
}
- private:
+private:
DISABLE_COPY_AND_ASSIGN (minimal_symbol_reader);
@@ -168,15 +166,12 @@ class minimal_symbol_reader
int m_msym_count;
};
-
-
/* Return whether MSYMBOL is a function/method. If FUNC_ADDRESS_P is
non-NULL, and the MSYMBOL is a function, then *FUNC_ADDRESS_P is
set to the function's address, already resolved if MINSYM points to
a function descriptor. */
-bool msymbol_is_function (struct objfile *objfile,
- minimal_symbol *minsym,
+bool msymbol_is_function (struct objfile *objfile, minimal_symbol *minsym,
CORE_ADDR *func_address_p = NULL);
/* Compute a hash code for the string argument. Unlike htab_hash_string,
@@ -193,10 +188,8 @@ unsigned int msymbol_hash_iw (const char *);
is only a GDB in-memory computed value with no external files compatibility
requirements. */
-#define SYMBOL_HASH_NEXT(hash, c) \
- ((hash) * 67 + TOLOWER ((unsigned char) (c)) - 113)
-
-
+#define SYMBOL_HASH_NEXT(hash, c) \
+ ((hash) *67 + TOLOWER ((unsigned char) (c)) - 113)
/* Look through all the current minimal symbol tables and find the
first minimal symbol that matches NAME. If OBJF is non-NULL, limit
@@ -205,8 +198,7 @@ unsigned int msymbol_hash_iw (const char *);
symbols are still preferred). Returns a bound minimal symbol that
matches, or an empty bound minimal symbol if no match is found. */
-struct bound_minimal_symbol lookup_minimal_symbol (const char *,
- const char *,
+struct bound_minimal_symbol lookup_minimal_symbol (const char *, const char *,
struct objfile *);
/* Like lookup_minimal_symbol, but searches all files and
@@ -232,8 +224,8 @@ struct bound_minimal_symbol lookup_minimal_symbol_text (const char *,
objfile is not accepted. Returns a bound minimal symbol that
matches, or an "empty" bound minimal symbol otherwise. */
-extern struct bound_minimal_symbol lookup_minimal_symbol_linkage
- (const char *name, struct objfile *objf)
+extern struct bound_minimal_symbol
+lookup_minimal_symbol_linkage (const char *name, struct objfile *objf)
ATTRIBUTE_NONNULL (1) ATTRIBUTE_NONNULL (2);
/* Look through all the current minimal symbol tables and find the
@@ -241,8 +233,8 @@ extern struct bound_minimal_symbol lookup_minimal_symbol_linkage
limit the search to that objfile. Returns a pointer to the minimal
symbol that matches, or NULL if no match is found. */
-struct minimal_symbol *lookup_minimal_symbol_by_pc_name
- (CORE_ADDR, const char *, struct objfile *);
+struct minimal_symbol *
+lookup_minimal_symbol_by_pc_name (CORE_ADDR, const char *, struct objfile *);
enum class lookup_msym_prefer
{
@@ -279,11 +271,10 @@ enum class lookup_msym_prefer
then the contents will be set to reference the closest symbol before
PC_IN. */
-struct bound_minimal_symbol lookup_minimal_symbol_by_pc_section
- (CORE_ADDR pc_in,
- struct obj_section *section,
- lookup_msym_prefer prefer = lookup_msym_prefer::TEXT,
- bound_minimal_symbol *previous = nullptr);
+struct bound_minimal_symbol lookup_minimal_symbol_by_pc_section (
+ CORE_ADDR pc_in, struct obj_section *section,
+ lookup_msym_prefer prefer = lookup_msym_prefer::TEXT,
+ bound_minimal_symbol *previous = nullptr);
/* Backward compatibility: search through the minimal symbol table
for a matching PC (no section given).
@@ -300,9 +291,9 @@ struct bound_minimal_symbol lookup_minimal_symbol_by_pc (CORE_ADDR);
For each matching symbol, CALLBACK is called with the symbol. */
-void iterate_over_minimal_symbols
- (struct objfile *objf, const lookup_name_info &name,
- gdb::function_view<bool (struct minimal_symbol *)> callback);
+void iterate_over_minimal_symbols (
+ struct objfile *objf, const lookup_name_info &name,
+ gdb::function_view<bool (struct minimal_symbol *)> callback);
/* Compute the upper bound of MINSYM. The upper bound is the last
address thought to be part of the symbol. If the symbol has a