diff options
author | Tom Tromey <tromey@adacore.com> | 2023-04-20 06:33:12 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-06-05 09:59:17 -0600 |
commit | 987bdf4dfdbdfddc8496712df7f536a6a1a99baf (patch) | |
tree | e261b0ea2b372698f84f15a8132b69497851a3d2 | |
parent | 611e7b5cb92dfe0a81543d1581442780f2b8c4de (diff) | |
download | gdb-987bdf4dfdbdfddc8496712df7f536a6a1a99baf.zip gdb-987bdf4dfdbdfddc8496712df7f536a6a1a99baf.tar.gz gdb-987bdf4dfdbdfddc8496712df7f536a6a1a99baf.tar.bz2 |
Minor cleanup in loclist_describe_location
loclist_describe_location already has a per_objfile local variable, so
use it consistently.
-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 d961587..c1955f2 100644 --- a/gdb/dwarf2/loc.c +++ b/gdb/dwarf2/loc.c @@ -3968,7 +3968,7 @@ loclist_describe_location (struct symbol *symbol, CORE_ADDR addr, if (dlbaton->per_cu->version () < 5 && dlbaton->from_dwo) kind = decode_debug_loc_dwo_addresses (dlbaton->per_cu, - dlbaton->per_objfile, + per_objfile, loc_ptr, buf_end, &new_ptr, &low, &high, byte_order); else if (dlbaton->per_cu->version () < 5) @@ -3978,7 +3978,7 @@ loclist_describe_location (struct symbol *symbol, CORE_ADDR addr, signed_addr_p); else kind = decode_debug_loclists_addresses (dlbaton->per_cu, - dlbaton->per_objfile, + per_objfile, loc_ptr, buf_end, &new_ptr, &low, &high, byte_order, addr_size, signed_addr_p); @@ -4041,7 +4041,7 @@ loclist_describe_location (struct symbol *symbol, CORE_ADDR addr, /* Now describe this particular location. */ locexpr_describe_location_1 (symbol, low, stream, loc_ptr, length, addr_size, offset_size, - dlbaton->per_cu, dlbaton->per_objfile); + dlbaton->per_cu, per_objfile); gdb_printf (stream, "\n"); |