diff options
author | Zoran Zaric <zoran.zaric@amd.com> | 2020-09-15 16:52:11 +0100 |
---|---|---|
committer | Zoran Zaric <zoran.zaric@amd.com> | 2021-08-05 16:40:47 +0100 |
commit | ba5bc3e5a9268bcdc701d5a6701a9b41538a3f51 (patch) | |
tree | d90bed1f7780e64faf9fe4e92cc7060ab8533745 /gdb/build-id.h | |
parent | efa86d3c26457c4c619fddef8232738d5091978b (diff) | |
download | gdb-ba5bc3e5a9268bcdc701d5a6701a9b41538a3f51.zip gdb-ba5bc3e5a9268bcdc701d5a6701a9b41538a3f51.tar.gz gdb-ba5bc3e5a9268bcdc701d5a6701a9b41538a3f51.tar.bz2 |
Make DWARF evaluator return a single struct value
The patch is addressing the issue of class users writing and reading
the internal data of the dwarf_expr_context class.
At this point, all conditions are met for the DWARF evaluator to return
an evaluation result in a form of a single struct value object.
gdb/ChangeLog:
* dwarf2/expr.c (pieced_value_funcs): Chenge to static
function.
(allocate_piece_closure): Change to static function.
(dwarf_expr_context::fetch_result): New function.
* dwarf2/expr.h (struct piece_closure): Remove declaration.
(struct dwarf_expr_context): fetch_result new declaration.
fetch, fetch_address and fetch_in_stack_memory members move
to private.
(allocate_piece_closure): Remove.
* dwarf2/frame.c (execute_stack_op): Change to use
fetch_result.
* dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Change to use
fetch_result.
(dwarf2_locexpr_baton_eval): Change to use fetch_result.
* dwarf2/loc.h (invalid_synthetic_pointer): Expose function.
Diffstat (limited to 'gdb/build-id.h')
0 files changed, 0 insertions, 0 deletions