diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-01-28 10:28:57 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-04-11 10:46:07 -0400 |
commit | 60f62e2b83eb362c5063247235c111a59e13cad1 (patch) | |
tree | c74a83d20a05ab710391425f072f79e31276db5a /gdb/coffread.c | |
parent | 4aeddc50d7a06294cc124dfd8f43992ffa0b7382 (diff) | |
download | gdb-60f62e2b83eb362c5063247235c111a59e13cad1.zip gdb-60f62e2b83eb362c5063247235c111a59e13cad1.tar.gz gdb-60f62e2b83eb362c5063247235c111a59e13cad1.tar.bz2 |
gdb: remove MSYMBOL_TYPE macro
Add a getter and a setter for a minimal symbol's type. Remove the
corresponding macro and adjust all callers.
Change-Id: I89900df5ffa5687133fe1a16b2e0d4684e67a77d
Diffstat (limited to 'gdb/coffread.c')
-rw-r--r-- | gdb/coffread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c index 24dd9b9..f5ef128 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -647,7 +647,7 @@ coff_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags) or "_imp_", get rid of the prefix, and search the minimal symbol in OBJFILE. Note that 'maintenance print msymbols' shows that type of these "_imp_XXXX" symbols is mst_data. */ - if (MSYMBOL_TYPE (msym) == mst_data) + if (msym->type () == mst_data) { const char *name1 = NULL; @@ -669,8 +669,8 @@ coff_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags) respectively in OBJFILE. Set the type of symbol "foo" as 'mst_solib_trampoline'. */ if (found.minsym != NULL - && MSYMBOL_TYPE (found.minsym) == mst_text) - MSYMBOL_TYPE (found.minsym) = mst_solib_trampoline; + && found.minsym->type () == mst_text) + found.minsym->set_type (mst_solib_trampoline); } } } |