]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb_is_target_remote -> gdb_protocol_is_remote
authorPedro Alves <pedro@palves.net>
Wed, 17 Apr 2024 19:43:53 +0000 (20:43 +0100)
committerPedro Alves <pedro@palves.net>
Fri, 26 Apr 2024 20:22:48 +0000 (21:22 +0100)
commit5fec7411a2b02d4623484ad089b722f8c281575e
treeb38b90695d85e34c01ffebd6a7ec5118f0b5a66f
parentc7a2ee649115c78a7722fddccb5e27dbd1478a5c
gdb_is_target_remote -> gdb_protocol_is_remote

This is similar to the previous patch, but for gdb_protocol_is_remote.

gdb_is_target_remote and its MI cousin mi_is_target_remote, use "maint
print target-stack", which is unnecessary when checking whether
gdb_protocol is "remote" or "extended-remote" would do.  Checking
gdb_protocol is more efficient, and can be done before starting GDB
and running to main, unlike gdb_is_target_remote/mi_is_target_remote.

This adds a new gdb_protocol_is_remote procedure, and uses it in place
of gdb_is_target_remote/mi_is_target_remote throughout.

There are no uses of gdb_is_target_remote/mi_is_target_remote left
after this.  Those will be eliminated in a following patch.

In some spots, we no longer need to defer the check until after
starting GDB, so the patch adjusts accordingly.

Change-Id: I90267c132f942f63426f46dbca0b77dbfdf9d2ef
Approved-By: Tom Tromey <tom@tromey.com>
18 files changed:
gdb/testsuite/gdb.arch/aarch64-sme-core.exp.tcl
gdb/testsuite/gdb.arch/aarch64-sme-regs-available.exp.tcl
gdb/testsuite/gdb.arch/aarch64-sme-regs-sigframe.exp.tcl
gdb/testsuite/gdb.arch/aarch64-sme-regs-unavailable.exp.tcl
gdb/testsuite/gdb.arch/aarch64-sme-sanity.exp
gdb/testsuite/gdb.base/cond-eval-mode.exp
gdb/testsuite/gdb.base/dprintf.exp
gdb/testsuite/gdb.base/hbreak-in-shr-unsupported.exp
gdb/testsuite/gdb.mi/mi-nonstop.exp
gdb/testsuite/gdb.python/py-evsignal.exp
gdb/testsuite/gdb.reverse/finish-reverse-next.exp
gdb/testsuite/gdb.threads/break-while-running.exp
gdb/testsuite/gdb.threads/main-thread-exit-during-detach.exp
gdb/testsuite/gdb.threads/process-dies-while-handling-bp.exp
gdb/testsuite/gdb.trace/change-loc.exp
gdb/testsuite/gdb.trace/ftrace.exp
gdb/testsuite/gdb.trace/qtro.exp
gdb/testsuite/lib/gdb.exp