This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[Commit] interpreter_exec_cmd (interps.c)
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 26 Jan 2005 22:57:47 +1300
- Subject: [Commit] interpreter_exec_cmd (interps.c)
2005-01-26 Nick Roberts <nickrob@snap.net.nz>
* interps.c (interpreter_exec_cmd): Use condition,
e.reason < 0, to raise an error.
*** /home/nick/src/gdb/interps.c.~1.10.~ 2005-01-26 22:55:00.000000000 +1300
--- /home/nick/src/gdb/interps.c 2005-01-26 21:58:47.000000000 +1300
***************
*** 399,405 ****
for (i = 1; i < nrules; i++)
{
struct exception e = interp_exec (interp_to_use, prules[i]);
! if (!e.reason)
{
interp_set (old_interp);
interp_set_quiet (interp_to_use, old_quiet);
--- 399,405 ----
for (i = 1; i < nrules; i++)
{
struct exception e = interp_exec (interp_to_use, prules[i]);
! if (e.reason < 0)
{
interp_set (old_interp);
interp_set_quiet (interp_to_use, old_quiet);