diff options
author | Tom Tromey <tromey@adacore.com> | 2021-11-18 11:25:29 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-03-28 13:07:41 -0600 |
commit | 7eb21cc702249b4fb1beecee25c0c8ccbd9edd15 (patch) | |
tree | ecd6706240119bc64fb60a5025a808e53c0664bb /gdb/dwarf2 | |
parent | b8e92c571baed4e794bd62b7bf417fa8bbaf5c95 (diff) | |
download | gdb-7eb21cc702249b4fb1beecee25c0c8ccbd9edd15.zip gdb-7eb21cc702249b4fb1beecee25c0c8ccbd9edd15.tar.gz gdb-7eb21cc702249b4fb1beecee25c0c8ccbd9edd15.tar.bz2 |
Change call_site_target to use custom type and enum
call_site_target reuses field_loc_kind and field_location. However,
it has never used the full range of the field_loc_kind enum. In a
subsequent patch, I plan to add a new 'kind' here, so it seemed best
to avoid this reuse and instead introduce new types here.
Diffstat (limited to 'gdb/dwarf2')
-rw-r--r-- | gdb/dwarf2/loc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/dwarf2/loc.c b/gdb/dwarf2/loc.c index d786384..16c42a5 100644 --- a/gdb/dwarf2/loc.c +++ b/gdb/dwarf2/loc.c @@ -643,7 +643,7 @@ call_site_to_target_addr (struct gdbarch *call_site_gdbarch, { switch (call_site->target.loc_kind ()) { - case FIELD_LOC_KIND_DWARF_BLOCK: + case call_site_target::DWARF_BLOCK: { struct dwarf2_locexpr_baton *dwarf_block; struct value *val; @@ -690,7 +690,7 @@ call_site_to_target_addr (struct gdbarch *call_site_gdbarch, return value_as_address (val); } - case FIELD_LOC_KIND_PHYSNAME: + case call_site_target::PHYSNAME: { const char *physname; struct bound_minimal_symbol msym; @@ -713,7 +713,7 @@ call_site_to_target_addr (struct gdbarch *call_site_gdbarch, return BMSYMBOL_VALUE_ADDRESS (msym); } - case FIELD_LOC_KIND_PHYSADDR: + case call_site_target::PHYSADDR: { dwarf2_per_objfile *per_objfile = call_site->per_objfile; compunit_symtab *cust = per_objfile->get_symtab (call_site->per_cu); |