From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5551 invoked by alias); 13 Jun 2002 17:06:43 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 5505 invoked from network); 13 Jun 2002 17:06:41 -0000 Received: from unknown (HELO mailhub.lss.emc.com) (168.159.1.79) by sources.redhat.com with SMTP; 13 Jun 2002 17:06:41 -0000 Received: from popimap.lss.emc.com (caduseus-ge.lss.emc.com [10.254.140.132]) by mailhub.lss.emc.com (Switch-2.2.0/Switch-2.2.0) with ESMTP id g5DH6W511711 for ; Thu, 13 Jun 2002 13:06:32 -0400 (EDT) Received: from emc.com (lul1173.lss.emc.com [168.159.33.173]) by popimap.lss.emc.com (Switch-2.2.0/Switch-2.2.0) with ESMTP id g5DH6VS26037; Thu, 13 Jun 2002 13:06:31 -0400 (EDT) Message-ID: <3D08D15E.7030805@emc.com> Date: Thu, 13 Jun 2002 10:06:00 -0000 From: Josef Ezra User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com CC: jezra@emc.com Subject: Request for new gdb command: 'info orientation' References: <02ea01c1e6eb$65f850c0$ad219fa8@lss.emc.com> <3CBEFC88.37807AEF@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-06/txt/msg00219.txt.bz2 Hi all While writing a perl gui for gdb, I had to add a new command. It looks like this: (gdb) info orientation main 0x00034960:753 0x00034b44:757 0x00034b48:761 0x00034b50:759 0x00034b54:761 0x00034b68:763 0x00034b70:772 (gdb) and associate addresses with line numbers. This information allow merging the disassemble with the sources without executing 'info line' command for each address, since the last took too long (the difference between O(n^2) to O(n)). (The command was also useful for analyzing patches and code changes.) Is there an existing way of doing it? If not, will you consider adding this (or similar) command? - jezra The perl gui (temporally named 'sgdb') is in the process of becoming an open source. Snapshots can be found at http://sgdb.sourceforge.net The linkage between perl and gdb can be downloaded from CPAN. The module name is Devel::GDB.