From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: Re: [rfc] Bug fixes for CLI "show" command Date: Mon, 10 May 2004 18:17:00 -0000 Message-id: <20040510181749.GD25838@nevyn.them.org> References: <20040419200005.GA16011@nevyn.them.org> X-SW-Source: 2004-05/msg00293.html On Mon, Apr 19, 2004 at 04:00:05PM -0400, Daniel Jacobowitz wrote: > There are two problems with the current "show" command. One is that > prefixes get doubled. Type "show" at a GDB prompt: > > trust-readonly-sections: Mode for reading from readonly sections is off. > tui tui active-border-mode: The attribute mode to use for the active TUI window border is > "bold-standout". > tui border-kind: The kind of border for TUI windows is "acs". > tui border-mode: The attribute mode to use for the TUI window borders is "normal". > > See the doubled "tui" in the second line? > > The other problem is that it assumes the first five characters of the prefix > are "show ". I wanted to add a submenu to "maintenance show", so I needed > to use strstr here. I've checked this in. -- Daniel Jacobowitz