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]

[RFA] "Help" command and completion



Hmmm... currently the help command uses the default completer, 
which completes on symbols.  That's definitely not right.
Ideally, we want to complete on commands or something, but
substituting the noop complete would definitely be better than
completing on symbols.

OK to check in?

2002-01-04  Michael Snyder  <msnyder@redhat.com>

	* cli/cli-cmds.c (init_cli_cmds): The "help" command should not
	use the default completer.  Substitute noop_completer, although
	a command completer would be better.

Index: cli/cli-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/cli/cli-cmds.c,v
retrieving revision 1.10
diff -c -3 -p -r1.10 cli-cmds.c
*** cli-cmds.c	2001/09/01 21:38:05	1.10
--- cli-cmds.c	2002/01/05 02:47:58
*************** when gdb is started.", &cmdlist);
*** 668,674 ****
    c->completer = filename_completer;
  
    add_com ("quit", class_support, quit_command, "Exit gdb.");
!   add_com ("help", class_support, help_command, "Print list of commands.");
    add_com_alias ("q", "quit", class_support, 1);
    add_com_alias ("h", "help", class_support, 1);
  
--- 668,676 ----
    c->completer = filename_completer;
  
    add_com ("quit", class_support, quit_command, "Exit gdb.");
!   c = add_com ("help", class_support, help_command, 
! 	       "Print list of commands.");
!   c->completer = noop_completer;
    add_com_alias ("q", "quit", class_support, 1);
    add_com_alias ("h", "help", class_support, 1);
  


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