* [RFC] add gdbserver target
@ 2002-10-09 10:41 Martin M. Hunt
2002-10-09 10:56 ` Keith Seitz
0 siblings, 1 reply; 5+ messages in thread
From: Martin M. Hunt @ 2002-10-09 10:41 UTC (permalink / raw)
To: insight
[-- Attachment #1: Type: text/plain, Size: 446 bytes --]
This patch adds a "GDBserver" target name to the target dialog. This is
identical to a remote target, except it does not download, and it continues
instead of running.
--
Martin Hunt
GDB Engineer
Red Hat, Inc
2002-10-09 Martin M. Hunt <hunt@redhat.com>
* library/targetselection.itb (init_target_db): Add gdbserver
target.
(get_target_list): Always add "gdbserver" to list of valid targets.
(valid_target): Always allow "gdbserver".
[-- Attachment #2: p --]
[-- Type: text/x-diff, Size: 1672 bytes --]
Index: targetselection.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/targetselection.itb,v
retrieving revision 1.10
diff -u -u -r1.10 targetselection.itb
--- targetselection.itb 12 Feb 2002 20:05:14 -0000 1.10
+++ targetselection.itb 9 Oct 2002 17:37:43 -0000
@@ -261,6 +261,21 @@
set gdb_target(vxworks,cmd) "vxworks ethX"
set gdb_target(vxworks,runlist) { 1 0 1 1}
set gdb_target(vxworks,after_attaching) { sym vxWorks.st }
+
+ # GDBServer
+ set gdb_target(gdbserver,pretty-name) "GDBserver"
+ set gdb_target(gdbserver,pretty-name) "GDBserver/Serial"
+ set gdb_target(gdbserver,defbaud) "115200"
+ set gdb_target(gdbserver,baud-rates) {9600 19200 38400 57600 115200}
+ set gdb_target(gdbserver,cmd) "remote com1"
+ set gdb_target(gdbserver,runlist) {1 0 0 1}
+ set gdb_target(gdbserver,after_attaching) {}
+ set gdb_target(gdbservertcp,pretty-name) "GDBserver/TCP"
+ set gdb_target(gdbservertcp,defbaud) "TCP"
+ set gdb_target(gdbservertcp,baud-rates) {}
+ set gdb_target(gdbservertcp,cmd) "remote tcpX"
+ set gdb_target(gdbservertcp,runlist) {1 0 0 1}
+ set gdb_target(gdbservertcp,after_attaching) {}
}
body TargetSelection::default_port {} {
@@ -897,6 +912,7 @@
lappend names $name
}
}
+ lappend names gdbserver
return $names
}
@@ -1036,6 +1052,10 @@
# Returns 1 if TARGET is a _runnable_ target for this gdb.
body TargetSelection::valid_target {target} {
+
+ # always allow gdbserver
+ if {$target == "gdbserver"} {return 1}
+
set err [catch {gdb_cmd "help target $target"}]
if {$target == "exec" && ![native_debugging]} {
set err 1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] add gdbserver target
2002-10-09 10:41 [RFC] add gdbserver target Martin M. Hunt
@ 2002-10-09 10:56 ` Keith Seitz
2002-10-09 11:51 ` Martin M. Hunt
0 siblings, 1 reply; 5+ messages in thread
From: Keith Seitz @ 2002-10-09 10:56 UTC (permalink / raw)
To: Martin M. Hunt; +Cc: insight
On Wed, 9 Oct 2002, Martin M. Hunt wrote:
> This patch adds a "GDBserver" target name to the target dialog. This is
> identical to a remote target, except it does not download, and it continues
> instead of running.
Only one thing comes to mind... We only want gdbserver on natives, right?
Cross debuggers would use something like libremote (or whatever they're
going to call it today).
Otherwise it seems perfectly reasonable.
Keith
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] add gdbserver target
2002-10-09 10:56 ` Keith Seitz
@ 2002-10-09 11:51 ` Martin M. Hunt
2002-10-09 12:16 ` Keith Seitz
0 siblings, 1 reply; 5+ messages in thread
From: Martin M. Hunt @ 2002-10-09 11:51 UTC (permalink / raw)
To: Keith Seitz; +Cc: insight
On Wednesday 09 October 2002 10:59 am, Keith Seitz wrote:
> On Wed, 9 Oct 2002, Martin M. Hunt wrote:
> > This patch adds a "GDBserver" target name to the target dialog. This is
> > identical to a remote target, except it does not download, and it
> > continues instead of running.
>
> Only one thing comes to mind... We only want gdbserver on natives, right?
No. It is probably most commonly used for embedded linux cross development.
> Cross debuggers would use something like libremote (or whatever they're
> going to call it today).
I think they would use whichever they prefer or were supplied with. I'd
rather not get into that argument.
>
> Otherwise it seems perfectly reasonable.
> Keith
Actually, both gdbserver and libremote don't do downloads and therefore work
properly with Insight (without using the console) when using the "GDBserver"
target I added. I really don't want to change the name to
GDBServer/libremote/rda. Maybe I'll just update the docs?
--
Martin Hunt
GDB Engineer
Red Hat, Inc.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] add gdbserver target
2002-10-09 11:51 ` Martin M. Hunt
@ 2002-10-09 12:16 ` Keith Seitz
2002-10-09 17:47 ` Martin M. Hunt
0 siblings, 1 reply; 5+ messages in thread
From: Keith Seitz @ 2002-10-09 12:16 UTC (permalink / raw)
To: Martin M. Hunt; +Cc: insight
On Wed, 9 Oct 2002, Martin M. Hunt wrote:
> No. It is probably most commonly used for embedded linux cross development.
Ugh. Forgot about that...
> Actually, both gdbserver and libremote don't do downloads and therefore work
> properly with Insight (without using the console) when using the "GDBserver"
> target I added. I really don't want to change the name to
> GDBServer/libremote/rda. Maybe I'll just update the docs?
Yeah, just do whatever you think is best. I don't want to clutter this
dialog any more than need be.
Keith
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] add gdbserver target
2002-10-09 12:16 ` Keith Seitz
@ 2002-10-09 17:47 ` Martin M. Hunt
0 siblings, 0 replies; 5+ messages in thread
From: Martin M. Hunt @ 2002-10-09 17:47 UTC (permalink / raw)
To: Keith Seitz; +Cc: insight
Checked in.
Martin
On Wednesday 09 October 2002 12:19 pm, Keith Seitz wrote:
> On Wed, 9 Oct 2002, Martin M. Hunt wrote:
> > No. It is probably most commonly used for embedded linux cross
> > development.
>
> Ugh. Forgot about that...
>
> > Actually, both gdbserver and libremote don't do downloads and therefore
> > work properly with Insight (without using the console) when using the
> > "GDBserver" target I added. I really don't want to change the name to
> > GDBServer/libremote/rda. Maybe I'll just update the docs?
>
> Yeah, just do whatever you think is best. I don't want to clutter this
> dialog any more than need be.
>
> Keith
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-10-10 0:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-09 10:41 [RFC] add gdbserver target Martin M. Hunt
2002-10-09 10:56 ` Keith Seitz
2002-10-09 11:51 ` Martin M. Hunt
2002-10-09 12:16 ` Keith Seitz
2002-10-09 17:47 ` Martin M. Hunt
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).