(interpreter_exec_cmd): Use condition,
authorNick Roberts <nickrob@snap.net.nz>
Wed, 26 Jan 2005 09:56:18 +0000 (09:56 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Wed, 26 Jan 2005 09:56:18 +0000 (09:56 +0000)
e.reason < 0, to raise an error.

gdb/interps.c

index d33b19e..4a521ba 100644 (file)
@@ -399,7 +399,7 @@ interpreter_exec_cmd (char *args, int from_tty)
   for (i = 1; i < nrules; i++)
     {
       struct exception e = interp_exec (interp_to_use, prules[i]);
-      if (!e.reason)
+      if (e.reason < 0)
        {
          interp_set (old_interp);
          interp_set_quiet (interp_to_use, old_quiet);