gdb/testsuite: add test for Python commands redefining itself
authorJan Vrany <jan.vrany@labware.com>
Fri, 16 Dec 2022 11:38:28 +0000 (11:38 +0000)
committerJan Vrany <jan.vrany@labware.com>
Fri, 16 Dec 2022 11:38:28 +0000 (11:38 +0000)
commit429f0cd1396203204754141681b1bc65bd3f5259
tree22bde7421acfcaa257a7b1187e877e055ec086db
parentd88cb738e6a7a7179dfaff8af78d69250c852af1
gdb/testsuite: add test for Python commands redefining itself

This commit adds a test that creates a Python command that redefines
itself during its execution. This is to test use-after-free in
execute_command ().

This test needs run with ASan enabled in order to fail when it
should.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/testsuite/gdb.python/py-cmd.exp