[v3,0/1] gdb: Fix assertion in 'value_primitive_field'

Message ID 20240327152208.8321-1-stephan.rohr@intel.com
Headers
Series gdb: Fix assertion in 'value_primitive_field' |

Message

Rohr, Stephan March 27, 2024, 3:22 p.m. UTC
  Hi all,

this is version 3 of my patch.

V2 of my proposed patch can be found here:
https://sourceware.org/pipermail/gdb-patches/2024-March/207018.html

V1 of this series can be found here:
https://sourceware.org/pipermail/gdb-patches/2024-February/206520.html

Changes since V2:
* Updated testcase to enable testcase if compiler options
  '-D_GLIBCXX_DEBUG=1' and '-D_GLIBCXX_DEBUG_PEDANTIC=1'
  are used.

Changes since V1:
* Added a testcase.
* Rebased change to GDB-14.

I appreciate your feedback.

Thanks
Stephan

Rohr, Stephan (1):
  gdb: Fix assertion in 'value_primitive_field'

 .../locexpr-data-member-dynamic-location.c    |  32 +++++
 .../locexpr-data-member-dynamic-location.exp  | 129 ++++++++++++++++++
 gdb/value.c                                   |   4 +-
 3 files changed, 164 insertions(+), 1 deletion(-)
 create mode 100644 gdb/testsuite/gdb.dwarf2/locexpr-data-member-dynamic-location.c
 create mode 100644 gdb/testsuite/gdb.dwarf2/locexpr-data-member-dynamic-location.exp