[PATCH] Implement new `info core mappings' command

Pedro Alves pedro@codesourcery.com
Mon Oct 31 12:57:00 GMT 2011


On Monday 31 October 2011 07:00:12, Jan Kratochvil wrote:

> > > I think it should be add_prefix_cmd so that tab completion works.  "mappings
> > > / "all" should be commands, not parameters.  "info proc" already has this bug.
> > 
> > Yeah, `info proc' is buggy indeed.  I'll see if I send a patch fixing it
> > tomorrow.  Thanks for the tip.
> 
> Or it should be a single command using add_setshow_enum_cmd, not sure which
> approach is better.  Still I think the separate commands are better as they
> can have each specific help text.

I once wrote a patch for that.   /me *looks for it*
The reason I never pushed it is that "info proc" handles
more than one keyword at the same time.  E.g.,
"info proc cmdline cwd" displays both cmdline and cwd
info simultaneously.  That doesn't work if you have a 
command per keyword.

-- 
Pedro Alves
-------------- next part --------------
A non-text attachment was scrubbed...
Name: proc_map.diff
Type: text/x-patch
Size: 6614 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20111031/fa561b8f/attachment.bin>


More information about the Gdb-patches mailing list