aboutsummaryrefslogtreecommitdiff
path: root/gdb/interps.c
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2005-01-26 09:56:18 +0000
committerNick Roberts <nickrob@snap.net.nz>2005-01-26 09:56:18 +0000
commita7479e7ea11d52dc00e71a92f12f144c2272172a (patch)
treec8265ee45d1fc98a4dd9df0918fd9197373720b1 /gdb/interps.c
parent82c94ed06498b8c1d894fd32c1c45d074b9f2d5b (diff)
downloadgdb-a7479e7ea11d52dc00e71a92f12f144c2272172a.zip
gdb-a7479e7ea11d52dc00e71a92f12f144c2272172a.tar.gz
gdb-a7479e7ea11d52dc00e71a92f12f144c2272172a.tar.bz2
(interpreter_exec_cmd): Use condition,
e.reason < 0, to raise an error.
Diffstat (limited to 'gdb/interps.c')
-rw-r--r--gdb/interps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/interps.c b/gdb/interps.c
index d33b19e..4a521ba 100644
--- a/gdb/interps.c
+++ b/gdb/interps.c
@@ -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);