From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16808 invoked by alias); 5 Sep 2007 21:07:54 -0000 Received: (qmail 16789 invoked by uid 22791); 5 Sep 2007 21:07:54 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 05 Sep 2007 21:07:46 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l85L7fKJ029248; Wed, 5 Sep 2007 17:07:41 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l85L7eJE029269; Wed, 5 Sep 2007 17:07:40 -0400 Received: from [127.0.0.1] (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l85L7cB5002013; Wed, 5 Sep 2007 17:07:38 -0400 Message-ID: <46DF1A96.3010603@redhat.com> Date: Wed, 05 Sep 2007 21:07:00 -0000 From: Keith Seitz User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: "Robert S. Grimes" CC: insight@sourceware.org Subject: Re: Adding new target type References: <46DF045C.2080806@ll.mit.edu> <46DF05C6.7060409@redhat.com> <46DF127A.4050905@ll.mit.edu> <46DF1505.4070107@redhat.com> <46DF17B6.9020907@ll.mit.edu> In-Reply-To: <46DF17B6.9020907@ll.mit.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2007-q3/txt/msg00051.txt.bz2 Robert S. Grimes wrote: > And of course, this works: > > (gdb) target rtems-remote 192.168.1.55:2159 > > at least with gdb only. Fooey. > Any other ideas? Ah, I think I know what it could be... You wrote: # RTEMS Remote - NEW! set gdb_target(rtemsremotetcp,pretty-name) "RTEMS Remote/TCP" set gdb_target(rtemsremotetcp,defbaud) "TCP" set gdb_target(rtemsremotetcp,baud-rates) {} set gdb_target(rtemsremotetcp,cmd) "rtems-remote tcpX" set gdb_target(rtemsremotetcp,runlist) {1 1 0 1} set gdb_target(rtemsremotetcp,after_attaching) {} This isn't going to work. Take a look at TargetSelection::fill_targets and TargetSelection::get_target_list. If you type "help target", you should get your target in the output. I'm guessing a line that looks like "target rtems-remote -- BLAH BLAH". The "rtems-remote" is the actual name of the target, and the one you need to use as the lead index in the target database instead of "rtemsremotetcp". The dummy "tcp" targets are for targets which have multiple connection possibilities. See if that fixes anything. [It might help to put a "dbug" statement in TargetSelection::fill_targets so that you tell what it is doing.] Keith