Author: toshok
Date: 2005-04-08 16:30:04 -0400 (Fri, 08 Apr 2005)
New Revision: 42705
Modified:
trunk/debugger/ChangeLog
trunk/debugger/frontend/Command.cs
Log:
2005-04-08 Chris Toshok <[EMAIL PROTECTED]>
* frontend/Command.cs (UpCommand, DownCommand): oops, fix these so
they continue to work with no arguments.
Modified: trunk/debugger/ChangeLog
===================================================================
--- trunk/debugger/ChangeLog 2005-04-08 20:20:29 UTC (rev 42704)
+++ trunk/debugger/ChangeLog 2005-04-08 20:30:04 UTC (rev 42705)
@@ -1,3 +1,8 @@
+2005-04-08 Chris Toshok <[EMAIL PROTECTED]>
+
+ * frontend/Command.cs (UpCommand, DownCommand): oops, fix these so
+ they continue to work with no arguments.
+
2005-04-08 Martin Baulig <[EMAIL PROTECTED]>
* backends/Inferior.cs (Inferior.InsertHardwareBreakpoint): Allow
Modified: trunk/debugger/frontend/Command.cs
===================================================================
--- trunk/debugger/frontend/Command.cs 2005-04-08 20:20:29 UTC (rev 42704)
+++ trunk/debugger/frontend/Command.cs 2005-04-08 20:30:04 UTC (rev 42705)
@@ -923,20 +923,20 @@
protected override bool DoResolve (ScriptingContext context)
{
if (Args != null) {
- if (Args.Count != 1) {
+ if (Args.Count == 1) {
+ try {
+ increment = (int) UInt32.Parse
((string)Args[0]);;
+ } catch {
+ context.Print ("Argument must
be a positive integer");
+ return false;
+ }
+ }
+ else {
context.Error ("At most one argument
expected");
return false;
}
}
- try {
- int i = (int) UInt32.Parse (Argument);;
- increment = i;
- } catch {
- context.Print ("Argument must be a positive
integer");
- return false;
- }
-
return true;
}
@@ -961,20 +961,20 @@
protected override bool DoResolve (ScriptingContext context)
{
if (Args != null) {
- if (Args.Count != 1) {
+ if (Args.Count == 1) {
+ try {
+ decrement = (int) UInt32.Parse
((string)Args[0]);;
+ } catch {
+ context.Print ("Argument must
be a positive integer");
+ return false;
+ }
+ }
+ else {
context.Error ("At most one argument
expected");
return false;
}
}
- try {
- int i = (int) UInt32.Parse (Argument);;
- decrement = i;
- } catch {
- context.Print ("Argument must be a positive
integer");
- return false;
- }
-
return true;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches