gdb/testsuite: rename get_maint_bp_addr and move it to gdb-utils.exp
authorEnze Li <enze.li@hotmail.com>
Fri, 24 Jun 2022 13:00:40 +0000 (21:00 +0800)
committerEnze Li <enze.li@hotmail.com>
Sun, 24 Jul 2022 04:01:45 +0000 (12:01 +0800)
commitc444385fad25c720ca6f7407f748f1d601463938
treee98d33d233344a04303cd73fc28b5ee70d7e10e1
parent561e83f7c5cdfb2737ba36a04ea008caa6bcaa36
gdb/testsuite: rename get_maint_bp_addr and move it to gdb-utils.exp

The get_maint_bp_addr procedure will be shared by other test suite, so
move it to gdb-utils.exp.

Following Andrew's suggestion, I renamed get_maint_bp_addr to
gdb_get_bp_addr, since it would have handled normal breakpoints in
addition to the internal ones.  Note that there is still room for
improvement in this procedure, which I indicated in comments nearby.
gdb/testsuite/gdb.base/clear_non_user_bp.exp
gdb/testsuite/lib/gdb-utils.exp