Files
binutils-gdb/gdb/testsuite/gdb.dap
Tom de Vries 40bea10383 [gdb/testsuite] Fix gdb.dap/type_check.exp with older python
On openSUSE Leap 15.4 with system python 3.6, I run into:
...
(gdb) python check_everything()^M
(gdb) FAIL: gdb.dap/type_check.exp: type checker
...

In check_everything, the hasattr test fails silently:
...
def check_everything():
    # Older versions of Python can't really implement this.
    if hasattr(typing, "get_origin"):
...
and that makes the gdb_test in the test-case fail.

Fix this by emitting UNSUPPORTED instead in check_everything, and detecting
this in the test-case.

Tested on x86_64-linux.
2023-06-13 12:21:45 +02:00
..
2023-06-12 12:09:18 -06:00
2023-06-12 12:09:18 -06:00
2023-06-12 12:09:28 -06:00
2023-05-12 12:22:31 -06:00