]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Add write method to location description classes
authorZoran Zaric <Zoran.Zaric@amd.com>
Wed, 24 Feb 2021 14:56:21 +0000 (14:56 +0000)
committerZoran Zaric <zoran.zaric@amd.com>
Fri, 5 Nov 2021 11:46:38 +0000 (11:46 +0000)
commitb71ff12cf76915ad8ab73be67ec3b52adb288ee7
tree7f03321ff40ffc75f626529927644ad189fdc228
parentc4296c3e41e11acc6b0faa8ec0128fc30e036a83
Add write method to location description classes

After adding the interface for reading from the location, it also
makes sense to add the interface for writing.

To be clear, DWARF standard doesn't have a concept of writting to a
location, but because of the way how callback functions are used to
interact with the opaque implementation of the computed struct value
objects, the choice was to either use the existing DWARF entry classes
or to invent another way of representing the complexity behind those
computed objects.

Adding a write method seems to be a simpler option of the two.

gdb/ChangeLog:

        * dwarf2/expr.c (dwarf_location::write): New method.
        (dwarf_undefined::write): New method.
        (dwarf_memory::write): New method.
        (dwarf_register::write): New method.
        (dwarf_implicit::write): New method.
        (dwarf_implicit_pointer::write): New method.
        (dwarf_composite::write): New method.
gdb/dwarf2/expr.c