]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PowerPC: Skip base type RTTI tests before inferior start
authorAbhay Kandpal <abhay@linux.ibm.com>
Wed, 26 Nov 2025 06:33:25 +0000 (01:33 -0500)
committerAbhay Kandpal <abhay@linux.ibm.com>
Wed, 26 Nov 2025 06:40:28 +0000 (01:40 -0500)
commit0217fa55cbe406d6cdf122f5cd998f1ddb3461d3
tree68f15656f0cb42cb26c8049e6188fb5f96be7bd3
parenta806da18ad55c99cc4bb8f609015c39ab27d0b02
PowerPC: Skip base type RTTI tests before inferior start

On PowerPC targets, RTTI typeinfo objects for simple base types such as
`int`, `char*`, and `const char*` may not be emitted until the inferior
has been started.  As a result, the `gdb.cp/typeid.exp` test fails when
checking typeid results before program execution begins.

This patch extends the existing Clang-specific logic that skips base type
RTTI checks before the inferior starts, to also apply on PowerPC.  This
ensures consistent test behavior across compilers and targets.

gdb/testsuite/
    * gdb.cp/typeid.exp (do_typeid_tests): Skip base type RTTI tests
    before inferior start on PowerPC.

Approved-By: Tom de Vries <tdevries@suse.de>
gdb/testsuite/gdb.cp/typeid.exp