From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26398 invoked by alias); 13 Jun 2002 17:35:15 -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 26372 invoked from network); 13 Jun 2002 17:35:13 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 13 Jun 2002 17:35:13 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 2DA753CA8; Thu, 13 Jun 2002 13:35:16 -0400 (EDT) Message-ID: <3D08D7D4.4050407@cygnus.com> Date: Thu, 13 Jun 2002 10:35:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0rc3) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Josef Ezra Cc: gdb-patches@sources.redhat.com Subject: Re: Request for new gdb command: 'info orientation' References: <02ea01c1e6eb$65f850c0$ad219fa8@lss.emc.com> <3CBEFC88.37807AEF@redhat.com> <3D08D15E.7030805@emc.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-06/txt/msg00222.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? FYI, there is already an equivalent mechanism. Please have a look at: http://sources.redhat.com/gdb/current/onlinedocs/gdb_25.html#SEC283 Andrew