This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] mips-tdep.c: Make ``show mips abi'' more useful
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 25 Feb 2003 22:10:21 -0500
- Subject: Re: [RFA] mips-tdep.c: Make ``show mips abi'' more useful
- References: <1030226024118.ZM14581@localhost.localdomain>
On Tue, Feb 25, 2003 at 07:41:19PM -0700, Kevin Buettner wrote:
> By default, the command ``show mips abi'' will print the following:
>
> The ABI used by this program is "auto".
>
> This information is not as useful as it could be. In such cases, it
> would also be nice to know what GDB has determined the actual ABI to
> be. The patch below adds a callback to augment the information provided
> by the ``show mips abi command''. E.g,
>
> (gdb) file hello-n64-shared
> Reading symbols from hello-n64-shared...done.
> (gdb) show mips abi
> The ABI used by this program is "auto".
> Current ABI is "n64".
>
> Okay?
>
> (BTW, ``show language'' and some other commands in language.c use a
> similar mechanism for providing additional information. It might
> be cleaner though to implement ``show mips abi'' in a fashion similar
> to the way that ``show osabi'' is implemented.)
I get the impression we need a standard mechanism for this sort of
variable - they just keep cropping up all over the place.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer