Files
binutils-gdb/gdbsupport
Zoran Zaric 851fa76da8 Add to_location method to dwarf_value class
DWARF standard already contains an implicit conversion between location
description and a DWARF value. In the DWARF 5 version, one place
where this can happen is at the very end of the evaluation where a
client decides if the result is expected to be in a form of a value or
a location description (as_lval argument of the new evaluation method).

By allowing any location description to be on the DWARF stack, these
implicit conversions are expected on per operation basis which means
that the new dwarf_value class need to have a support for it.

This patch adds a conversion method from a dwarf_value object into a
location description object.

To support the conversion method we also need an implementation of the
C++14 standard library function make_unique which was copied from the
standard library implementation.

gdb/ChangeLog:

        * dwarf2/expr.c (class dwarf_value::to_location): New method.

gdbsupport/ChangeLog:

        * common-utils.h (make_unique): New function.
2021-11-05 11:46:38 +00:00
..
2020-10-25 21:08:49 -04:00
2021-01-22 12:43:27 -05:00
2021-03-24 14:57:53 -03:00
2021-09-23 09:30:54 -06:00
2021-09-23 09:30:54 -06:00
2021-03-24 14:57:53 -03:00
2021-03-24 14:57:53 -03:00
2021-10-28 11:17:45 -04:00

This is a helper library that is used by gdb and gdbserver.

To send patches, follow the gdb patch submission instructions in
../gdb/CONTRIBUTE.  For maintainers, see ../gdb/MAINTAINERS.