From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15008 invoked by alias); 11 Jan 2013 16:07:13 -0000 Received: (qmail 14997 invoked by uid 22791); 11 Jan 2013 16:07:11 -0000 X-SWARE-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 Jan 2013 16:07:04 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r0BG727l013965 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 11 Jan 2013 11:07:03 -0500 Received: from valrhona.uglyboxes.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r0BG72ZU018289 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 11 Jan 2013 11:07:02 -0500 Message-ID: <50F038A5.2010606@redhat.com> Date: Fri, 11 Jan 2013 16:07:00 -0000 From: Keith Seitz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 MIME-Version: 1.0 To: loody CC: insight@sourceware.org Subject: Re: how to add additional script to add more register information 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: 2013-q1/txt/msg00005.txt.bz2 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. Keith