From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4803 invoked by alias); 9 Mar 2006 15:18:18 -0000 Received: (qmail 4789 invoked by uid 22791); 9 Mar 2006 15:18:17 -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; Thu, 09 Mar 2006 15:18:13 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id k29FICE5009532 for ; Thu, 9 Mar 2006 10:18:12 -0500 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 k29FIB109019; Thu, 9 Mar 2006 10:18:11 -0500 Received: from [127.0.0.1] (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id k29FIA51017150; Thu, 9 Mar 2006 10:18:11 -0500 Message-ID: <44104727.7030707@redhat.com> Date: Thu, 09 Mar 2006 15:18:00 -0000 From: Keith Seitz User-Agent: Thunderbird 1.5 (X11/20060112) MIME-Version: 1.0 To: Jason.Binger@Seagate.com CC: insight@sources.redhat.com Subject: Re: Insight Question 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-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2006-q1/txt/msg00053.txt.bz2 Jason.Binger@Seagate.com wrote: > I started using insight as a possible debugger for a project I'm working > on. My question is, in the local variable view, is it possible I can set > the default format to "Hexadecimal" rather than "Natural" ?? I did a quick > look in the source and modified it to work on all local variables that come > up in the list but the variables that are hidden (members of > classes/structures) are still set at "Natural" and I have to manually > change each. > > Is there a default setting that can be easily changed? No, there isn't, but it would not be hard to do. Edit Block::_findVariables (where varobj create is called for local variables) to apply a preference defined in prefs.tcl to set the format for the variables when they're created (or perhaps just after?). Something like "$obj format [pref get gdb/variable/default_format]. If you get to it before I do, send me a patch. Takes about 5 min to actually do this. The tough part is exposing this preference somewhere... Keith