]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Add to_value method to dwarf_location class
authorZoran Zaric <Zoran.Zaric@amd.com>
Wed, 24 Feb 2021 12:13:04 +0000 (12:13 +0000)
committerZoran Zaric <zoran.zaric@amd.com>
Fri, 5 Nov 2021 11:46:38 +0000 (11:46 +0000)
commitb650f7fd861718e7b7feda4341d00469778a7c29
tree2a2ca5b63dfcb78c7128978ef6d1696b7cb13171
parent851fa76da81ae006da9797755dab9ecd3d338e92
Add to_value method to dwarf_location class

Following the idea from the last patch this patch is adding a
conversion method from any dwarf_location derived object into
a dwarf_value object.

Currently, we only know how to convert from a memory location
description into a value, but it is resonable to expect a set
of target hooks that would let the target decide on how to do
other conversions in the future.

gdb/ChangeLog:

        * dwarf2/expr.c (dwarf_location::to_value): New method.
        (dwarf_memory::to_value): New method.
        (ill_formed_expression): New function.
gdb/dwarf2/expr.c