From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17987 invoked by alias); 3 Jul 2003 15:38:56 -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 17980 invoked from network); 3 Jul 2003 15:38:56 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 3 Jul 2003 15:38:56 -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 h63FcuH08158 for ; Thu, 3 Jul 2003 11:38:56 -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 h63FctI19984; Thu, 3 Jul 2003 11:38:55 -0400 Received: from [150.1.200.14] (vpn50-58.rdu.redhat.com [172.16.50.58]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h63Fcti07029; Thu, 3 Jul 2003 11:38:55 -0400 Subject: Re: Adding new target in Targetselection.itb From: Keith Seitz To: msarasa@fh-konstanz.de Cc: "insight@sources.redhat.com" In-Reply-To: <1057246276.3f044c44b4b99@webmail.fh-konstanz.de> References: <1057059523.3f0172c3446d1@webmail.fh-konstanz.de> <1057088088.2022.105.camel@lindt.uglyboxes.com> <1057156012.1571.8.camel@lindt.uglyboxes.com> <1057246276.3f044c44b4b99@webmail.fh-konstanz.de> Content-Type: text/plain Organization: Message-Id: <1057247337.1571.5.camel@lindt.uglyboxes.com> Mime-Version: 1.0 Date: Thu, 03 Jul 2003 15:38:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2003-q3/txt/msg00013.txt.bz2 On Thu, 2003-07-03 at 08:31, msarasa@fh-konstanz.de wrote: > I don't overwrite the remote serial option. I have to modify the code for the > valid_target function (in targetselection.itb too) and add: > > if {[regexp "simuart$" $target]} { > # Special case (hacked for e1) > regsub simuart$ $target {} foo > return [valid_target $foo] > } > When you have your version of gdb, what does "help target remote simuart" say? If it does NOT cause an error (which I suspect it doesn't), then you don't need to modify valid_target. If "help target remote simuart" DOES return an error, then gdb doesn't think that "remote simuart" is a valid target. Fix gdb. Or hack around it in valid_target. Say that simuart is always valid. Keith