[PATCH v2 2/2] gdb/testsuite: add a clear test to py-breakpoint.exp

Tom Tromey tom@tromey.com
Fri Jul 15 16:27:41 GMT 2022


>>>>> "Enze" == Enze Li via Gdb-patches <gdb-patches@sourceware.org> writes:

Enze> This patch adds a test case to try to clear an internal python
Enze> breakpoint using the clear command.

Enze> +    gdb_test "python gdb.execute(\'clear *$bp_addr\')" \

It seems weird to do this via gdb.execute rather than directly, but also
harmless I suppose.  So I think this is ok either way.

Tom


More information about the Gdb-patches mailing list