public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Export dap_initialize
@ 2024-02-12 17:50 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2024-02-12 17:50 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=eed5f59c8c7630787196f09d612456e877ffca65
commit eed5f59c8c7630787196f09d612456e877ffca65
Author: Tom Tromey <tromey@adacore.com>
Date: Mon Jan 22 10:22:45 2024 -0700
Export dap_initialize
This changes the test suite to export dap_initialize.
Diff:
---
gdb/testsuite/lib/dap-support.exp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gdb/testsuite/lib/dap-support.exp b/gdb/testsuite/lib/dap-support.exp
index 0bb413e4037..07259862b18 100644
--- a/gdb/testsuite/lib/dap-support.exp
+++ b/gdb/testsuite/lib/dap-support.exp
@@ -238,7 +238,7 @@ proc dap_check_request_and_response {name command {obj {}}} {
# desired. Callers not caring about this should probably use
# dap_launch. Returns the empty string on failure. NAME is used as
# the test name.
-proc _dap_initialize {name} {
+proc dap_initialize {name} {
if {[dap_gdb_start]} {
return ""
}
@@ -266,7 +266,7 @@ proc _dap_initialize {name} {
# After this proc is called, gdb will be ready to accept breakpoint
# requests.
proc dap_launch {file {args {}}} {
- if {[_dap_initialize "startup - initialize"] == ""} {
+ if {[dap_initialize "startup - initialize"] == ""} {
return ""
}
set params "o program"
@@ -315,7 +315,7 @@ proc dap_launch {file {args {}}} {
# specifying PID as the inferior process ID. Returns the empty string
# on failure, or the response object from the attach request.
proc dap_attach {pid {prog ""}} {
- if {[_dap_initialize "startup - initialize"] == ""} {
+ if {[dap_initialize "startup - initialize"] == ""} {
return ""
}
@@ -331,7 +331,7 @@ proc dap_attach {pid {prog ""}} {
# specifying TARGET as the remote target. Returns the empty string on
# failure, or the response object from the attach request.
proc dap_target_remote {target} {
- if {[_dap_initialize "startup - initialize"] == ""} {
+ if {[dap_initialize "startup - initialize"] == ""} {
return ""
}
return [dap_check_request_and_response "startup - target" attach \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-12 17:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-12 17:50 [binutils-gdb] Export dap_initialize Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).