aboutsummaryrefslogtreecommitdiff
path: root/gdb/rust-parse.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-01-27 22:16:41 -0500
committerSimon Marchi <simon.marchi@efficios.com>2022-02-06 16:03:47 -0500
commit5f9c5a63ce38b103f778f54394c6a3d43b7ade90 (patch)
treec356fc03c61b9e9234aa8e187fb6c2303b8e5d2c /gdb/rust-parse.c
parentf5abd8f234426bbe8ccd08c43e6ae7cbe635e042 (diff)
downloadbinutils-5f9c5a63ce38b103f778f54394c6a3d43b7ade90.zip
binutils-5f9c5a63ce38b103f778f54394c6a3d43b7ade90.tar.gz
binutils-5f9c5a63ce38b103f778f54394c6a3d43b7ade90.tar.bz2
gdb: remove SYMBOL_TYPE macro
Add a getter and a setter for a symbol's type. Remove the corresponding macro and adjust all callers. Change-Id: Ie1a137744c5bfe1df4d4f9ae5541c5299577c8de
Diffstat (limited to 'gdb/rust-parse.c')
-rw-r--r--gdb/rust-parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/rust-parse.c b/gdb/rust-parse.c
index 75f8a3c..1f75b42 100644
--- a/gdb/rust-parse.c
+++ b/gdb/rust-parse.c
@@ -458,7 +458,7 @@ rust_parser::rust_lookup_type (const char *name)
if (result.symbol != NULL)
{
update_innermost_block (result);
- return SYMBOL_TYPE (result.symbol);
+ return result.symbol->type ();
}
type = lookup_typename (language (), name, NULL, 1);
@@ -1218,7 +1218,7 @@ rust_parser::name_to_operation (const std::string &name)
if (sym.symbol != nullptr)
{
gdb_assert (sym.symbol->aclass () == LOC_TYPEDEF);
- type = SYMBOL_TYPE (sym.symbol);
+ type = sym.symbol->type ();
}
if (type == nullptr)
type = rust_lookup_type (name.c_str ());