[PATCH v2 4/4] gdb/dwarf: fix reading DW_FORM_addrx with address size of 2

Tom Tromey tom@tromey.com
Wed Sep 23 15:13:55 GMT 2026


>>>>> "Simon" == Simon Marchi <simon.marchi@efficios.com> writes:

Simon> @@ -14658,25 +14660,34 @@ read_addr_index_1 (dwarf2_per_objfile *per_objfile, unsigned int addr_index,

Simon> +  ULONGEST entry_offset = static_cast<ULONGEST> (addr_index) * addr_size;

Since the only use is in a cast to another type, perhaps the type should
just be ULONGEST in the signature.

Tom


More information about the Binutils mailing list