Author: toshok
Date: 2005-04-06 20:13:54 -0400 (Wed, 06 Apr 2005)
New Revision: 42617
Modified:
trunk/debugger/ChangeLog
trunk/debugger/frontend/Command.cs
Log:
2005-04-06 Chris Toshok <[EMAIL PROTECTED]>
[ fixes bug #74469 ]
* frontend/Command.cs (HelpCommand.Execute): if there are no
commands in a family, say that and return. don't crash.
(LibraryCommand.Complete): do arg/filename completion.
Modified: trunk/debugger/ChangeLog
===================================================================
--- trunk/debugger/ChangeLog 2005-04-06 19:02:14 UTC (rev 42616)
+++ trunk/debugger/ChangeLog 2005-04-07 00:13:54 UTC (rev 42617)
@@ -1,3 +1,10 @@
+2005-04-06 Chris Toshok <[EMAIL PROTECTED]>
+
+ [ fixes bug #74469 ]
+ * frontend/Command.cs (HelpCommand.Execute): if there are no
+ commands in a family, say that and return. don't crash.
+ (LibraryCommand.Complete): do arg/filename completion.
+
2005-04-04 Chris Toshok <[EMAIL PROTECTED]>
* backends/mono/MonoFundamentalType.cs: use the protected
Modified: trunk/debugger/frontend/Command.cs
===================================================================
--- trunk/debugger/frontend/Command.cs 2005-04-06 19:02:14 UTC (rev 42616)
+++ trunk/debugger/frontend/Command.cs 2005-04-07 00:13:54 UTC (rev 42617)
@@ -2023,6 +2023,17 @@
context.CurrentProcess.Process, Argument);
}
+ public override void Complete (Engine e, string text, int
start, int end)
+ {
+ if (text.StartsWith ("-")) {
+ e.Completer.ArgumentCompleter (GetType(), text,
start, end);
+ }
+ else {
+ /* attempt filename completion */
+ e.Completer.FilenameCompleter (text, start,
end);
+ }
+ }
+
// IDocumentableCommand
public CommandFamily Family { get { return CommandFamily.Files;
} }
public string Description { get { return "Load a library."; } }
@@ -2060,6 +2071,11 @@
if (family_index != -1) {
ArrayList cmds = (ArrayList)
e.CommandsByFamily [family_index];
+ if (cmds == null) {
+ Console.WriteLine ("No commands
exist in that family");
+ return null;
+ }
+
/* we're printing out a command family
*/
Console.WriteLine ("List of
commands:\n");
foreach (string cmd_name in cmds) {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches