]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Clean up value_struct_elt_bitpos
authorTom Tromey <tromey@adacore.com>
Tue, 15 Apr 2025 18:29:50 +0000 (12:29 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 17 Apr 2025 15:25:55 +0000 (09:25 -0600)
commit2b4909278a4c664b9f457efbcc475ed288b730ac
treecff38301a403690474689dc1e08fd4f412d89f70
parent64a6faa2b6ce9a4c8049fe55a5247733b4aa3cfd
Clean up value_struct_elt_bitpos

value_struct_elt_bitpos is weird: it takes an in/out value parameter,
and it takes an error string parameter.  However, it only has a single
caller, which never uses the "out" value.

I think it was done this way to mimic value_struct_elt.  However,
value_struct_elt is pretty ugly and I don't think it's worth
imitating.

This patch cleans up value_struct_elt_bitpos a bit.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/python/py-value.c
gdb/valops.c
gdb/value.h