From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28245 invoked by alias); 23 Jan 2013 16:31:08 -0000 Received: (qmail 28229 invoked by uid 22791); 23 Jan 2013 16:31:05 -0000 X-SWARE-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-ie0-f171.google.com (HELO mail-ie0-f171.google.com) (209.85.223.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 Jan 2013 16:30:58 +0000 Received: by mail-ie0-f171.google.com with SMTP id 9so10194212iec.30 for ; Wed, 23 Jan 2013 08:30:57 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.50.151.238 with SMTP id ut14mr1631156igb.58.1358958657796; Wed, 23 Jan 2013 08:30:57 -0800 (PST) Received: by 10.64.26.161 with HTTP; Wed, 23 Jan 2013 08:30:57 -0800 (PST) In-Reply-To: <50F038A5.2010606@redhat.com> References: <50F038A5.2010606@redhat.com> Date: Wed, 23 Jan 2013 16:31:00 -0000 Message-ID: Subject: Re: how to add additional script to add more register information From: loody To: Keith Seitz Cc: insight@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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: 2013-q1/txt/msg00008.txt.bz2 hi Keith: 2013/1/12 Keith Seitz : > On 01/11/2013 07:53 AM, loody wrote: >> >> hi all: >> is it possible to add additional script to add information I want in >> insight? > > > It is possible, yes. Easy? Maybe not so much. > > >> if it could, is there any example i can follow? > > > There are two ways to accomplish your specific task. > > First, the ugly, but more integrated way, is to hack at > gdbtk/library/regwin.it[hb]. The code there is actually fairly recent and > clean. > > The more formal way, but less integrated, is to create a plug-in. To do > that, follow the directions in gdbtk/library/plugins/HOW-TO. WARNING: I > haven't looked at these directions in quite some time, they may be slightly > outdated. But I doubt much has changed since there have been no plug-ins > written in a very long time. If you find problems with the HOW-TO, just send > a note to this list so that I can address them. > > In lieu of that, or in addition to that, you can follow the either the > example plug-in (gdbtk/library/plugins/rhabout) and/or the (very simple) > Pentium plug-in (gdbtk/library/plugins/intel-pentium). > > Again, if you run into problems or have any questions, just send a note to > this list, and I'll try to get your questions answered as best as possible. Sorry for late response your mail. should I get any script familiar fist, such tcl? if tcl learning is necessary, where I can get it? Thanks a lot, -- Regards,