This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] mips-tdep.c: Make ``show mips abi'' more useful


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]