From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26847 invoked by alias); 29 Feb 2008 05:38:01 -0000 Received: (qmail 26836 invoked by uid 22791); 29 Feb 2008 05:38:00 -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; Fri, 29 Feb 2008 05:37:43 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m1T5bfw6008545; Fri, 29 Feb 2008 00:37:41 -0500 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 m1T5becP026258; Fri, 29 Feb 2008 00:37:40 -0500 Received: from lindt.uglyboxes.com (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m1T5bdcZ026449; Fri, 29 Feb 2008 00:37:40 -0500 Message-ID: <47C79954.4000502@redhat.com> Date: Fri, 29 Feb 2008 05:38:00 -0000 From: Keith Seitz User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: "Edward L. Hepler" CC: insight@sources.redhat.com Subject: Re: Adding a target? References: In-Reply-To: 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: 2008-q1/txt/msg00065.txt.bz2 Edward L. Hepler wrote: > I'd like to use insight to drive gdb and have included the appropriate > gdb modifications. The "gdb-side" appears to operate properly, but > I'm still having some problems with the GUI portion. I'd appreciate > any pointers you may be able to send that would help in adding a target > to the GUI... An error pops up stating that "can't read > "PREFS_state(gdb/load/default-portname value)" no such element in array" There are two preferences that are rather closely related, "*-port" and "*-portname". The former is used with serial connections and the latter with TCP connections. In this latter case, the TCP port NUMBER is stored in *-portname (I don't know why!). [YUCK!] The "default" target settings are supposed to be initialized by TargetSelection::_init_prefs, which is initialized when the target selection dialog is CONSTRUCTED. Sigh. That's messed up, since interface.tcl relies on these values in set_target_name. Yich. I'm surprised this worked at all. Alas, as a quick hack, try this: 1) add a call to _init_prefs in either TargetSelection::getname or TargetSelection::init_target_db. I would probably do it in init_target_db and remove other calls to _init_pref in this file. 2) define the preference gdb/load/default-portname (set it to any integer) in TargetSelection::_init_prefs (follow the example for default-port at the end of this method). Let me know if that fixes your problem. Keith