From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19848 invoked by alias); 9 Oct 2002 17:41:37 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 19841 invoked from network); 9 Oct 2002 17:41:36 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 9 Oct 2002 17:41:36 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id g99HLoX24906 for ; Wed, 9 Oct 2002 13:21:50 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g99Hfaf22862 for ; Wed, 9 Oct 2002 13:41:36 -0400 Received: from localhost.localdomain (romulus-int.sfbay.redhat.com [172.16.27.46]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g99HfZa08145 for ; Wed, 9 Oct 2002 13:41:35 -0400 From: "Martin M. Hunt" Organization: Red Hat Inc To: insight@sources.redhat.com Subject: [RFC] add gdbserver target Date: Wed, 09 Oct 2002 10:41:00 -0000 User-Agent: KMail/1.4.1 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="------------Boundary-00=_DF6QMIJJGCLT7N5ONTCJ" Message-Id: <200210091040.25623.hunt@redhat.com> X-SW-Source: 2002-q4/txt/msg00021.txt.bz2 --------------Boundary-00=_DF6QMIJJGCLT7N5ONTCJ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit Content-length: 446 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 * 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". --------------Boundary-00=_DF6QMIJJGCLT7N5ONTCJ Content-Type: text/x-diff; charset="us-ascii"; name="p" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="p" Content-length: 1672 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 --------------Boundary-00=_DF6QMIJJGCLT7N5ONTCJ--