This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Request for new gdb command: 'info orientation'
- From: Josef Ezra <jezra at emc dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: jezra at emc dot com
- Date: Thu, 13 Jun 2002 13:07:42 -0400
- Subject: Request for new gdb command: 'info orientation'
- References: <02ea01c1e6eb$65f850c0$ad219fa8@lss.emc.com> <3CBEFC88.37807AEF@redhat.com>
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.