Fix "finish" for vector types on ARM
authorTom Tromey <tromey@adacore.com>
Wed, 20 Sep 2023 15:16:19 +0000 (09:16 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 30 Oct 2023 13:45:39 +0000 (07:45 -0600)
commita0bfd1bfa6e7ecdf67bbf11defeb821d9c63e8ef
tree8351e56453dcaabd59d2c6f100fd8d3167b0ad72
parentb4b9074dc0dfab4fb00562b359315d78b09a1564
Fix "finish" for vector types on ARM

On a big-endian ARM system, "finish" printed the wrong value when
finishing from a function that returned a vector type.  Similarly,
calls to a function also resulted in the wrong value being passed.  I
think both the read- and write-functions here should ignore the
endian-ness.

I tested this using the AdaCore internal test suite; the test case
that caught this is identical to gdb.base/gnu_vector.exp.

Approved-By: Luis Machado <luis.machado@arm.com>
gdb/arm-tdep.c