gdb/testsuite: add a clear test to py-breakpoint.exp
commitea892bdc4b6da5782c6ea6273aff499fb5fd5e6f
authorEnze Li <enze.li@hotmail.com>
Fri, 24 Jun 2022 13:57:54 +0000 (24 21:57 +0800)
committerEnze Li <enze.li@hotmail.com>
Sun, 24 Jul 2022 04:01:45 +0000 (24 12:01 +0800)
tree9a21b3a688604cfbee8d8c027ce2450f5b6f6546
parentc444385fad25c720ca6f7407f748f1d601463938
gdb/testsuite: add a clear test to py-breakpoint.exp

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

This was suggested by Pedro during a code review of the following
commit.

  commit a5c69b1e49bae4d0dcb20f324cebb310c63495c6
  Date:   Sun Apr 17 15:09:46 2022 +0800

    gdb: fix using clear command to delete non-user breakpoints(PR cli/7161)

Tested on x86_64 openSUSE Tumbleweed.
gdb/testsuite/gdb.python/py-breakpoint.exp