[v2,0/1] gdb/dwarf2: Fix 'rw_pieced_value' for values casted to different type.

Message ID 20221025134207.1548919-1-stephan.rohr@intel.com
Headers
Series gdb/dwarf2: Fix 'rw_pieced_value' for values casted to different type. |

Message

Rohr, Stephan Oct. 25, 2022, 1:42 p.m. UTC
  From: "Rohr, Stephan" <stephan.rohr@intel.com>

Hi all,

this is the second version of my patch.  Changes since v1:

  * Remove the 'internal_error' call in 'rw_pieced_value' if an object's
  'type' and 'enclosing_type' are  not idential.
  * Added additional test cases.

The discussion for v1 can be found at:
https://sourceware.org/pipermail/gdb-patches/2022-October/192547.html

I appreciate your feedback.

Thanks
Stephan

Rohr, Stephan (1):
  gdb/dwarf2: Fix 'rw_pieced_value' for values casted to different type.

 gdb/dwarf2/expr.c                       |  3 --
 gdb/testsuite/gdb.dwarf2/shortpiece.exp | 50 ++++++++++++++++++++++++-
 2 files changed, 49 insertions(+), 4 deletions(-)