diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2005-01-26 09:56:18 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2005-01-26 09:56:18 +0000 |
commit | a7479e7ea11d52dc00e71a92f12f144c2272172a (patch) | |
tree | c8265ee45d1fc98a4dd9df0918fd9197373720b1 /gdb/interps.c | |
parent | 82c94ed06498b8c1d894fd32c1c45d074b9f2d5b (diff) | |
download | gdb-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.c | 2 |
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); |