From: Paul Brook <paul@codesourcery.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch] Stray "," in mi-support.exp
Date: Mon, 14 Mar 2005 15:06:00 -0000 [thread overview]
Message-ID: <200503141505.53659.paul@codesourcery.com> (raw)
In-Reply-To: <20050313045243.GA32373@nevyn.them.org>
[-- Attachment #1: Type: text/plain, Size: 717 bytes --]
On Sunday 13 March 2005 04:52, Daniel Jacobowitz wrote:
> Hmm, it looks right to me, but I'd like for one of the MI maintainers
> to comment. With gdbserver, we use -target-select, which produces:
>
> 47-target-select remote localhost:2346
> Remote debugging from host 127.0.0.1
> 47^connected,thread-id="0",frame={addr="0xb7feac20",func="??",args=[]}
> (gdb)
>
> This is preferable to using the CLI passthrough; want to give that a
> shot, and then we can just delete the questionable pattern?
That does seem a better solution, and works as expected.
Updated patch attached.
Ok?
Paul
2005-03-14 Paul Brook <paul@codesourcery.com>
* lib/mi-support.exp: Use mi_gdb_target_cmd to connect to remote
targets.
[-- Attachment #2: patch.gdb_mi_exp --]
[-- Type: text/x-diff, Size: 897 bytes --]
Index: gdb/testsuite/lib/mi-support.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/mi-support.exp,v
retrieving revision 1.24
diff -u -p -r1.24 mi-support.exp
--- gdb/testsuite/lib/mi-support.exp 18 Jan 2004 15:23:30 -0000 1.24
+++ gdb/testsuite/lib/mi-support.exp 14 Mar 2005 14:50:31 -0000
@@ -494,14 +494,9 @@ proc mi_gdb_load { arg } {
}
} elseif { [target_info gdb_protocol] == "remote" } {
# remote targets
- send_gdb "target [target_info gdb_protocol] [target_info netport]\n"
- gdb_expect 60 {
- -re "\\^done,.*$mi_gdb_prompt$" {
- }
- timeout {
- perror "Unable to connect to remote target"
- return -1
- }
+ if { [mi_gdb_target_cmd "remote" [target_info netport]] != 0 } {
+ perror "Unable to connect to remote target"
+ return -1
}
send_gdb "48-target-download\n"
gdb_expect 10 {
next prev parent reply other threads:[~2005-03-14 15:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-12 1:27 Paul Brook
2005-03-13 4:52 ` Daniel Jacobowitz
2005-03-14 15:06 ` Paul Brook [this message]
2005-03-14 15:10 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200503141505.53659.paul@codesourcery.com \
--to=paul@codesourcery.com \
--cc=drow@false.org \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox