This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] rename variable in event-loop.c
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 30 Sep 2002 17:23:19 -0400
- Subject: [PATCH] rename variable in event-loop.c
pretty silly change, really. I am trying to nibble away at Keith's
interpreters branch.
elena
2002-09-30 Elena Zannoni <ezannoni@redhat.com>
* event-loop.c (start_event_loop): Rename variable 'result' to
'gdb_result', to avoid conflicts with upcoming intepreters changes.
Index: event-loop.c
===================================================================
RCS file: /cvs/uberbaum/gdb/event-loop.c,v
retrieving revision 1.19
diff -u -p -r1.19 event-loop.c
--- event-loop.c 10 Sep 2002 19:53:24 -0000 1.19
+++ event-loop.c 30 Sep 2002 21:24:31 -0000
@@ -392,10 +392,12 @@ start_event_loop (void)
longer any event sources registered. */
while (1)
{
- int result = catch_errors (gdb_do_one_event, 0, "", RETURN_MASK_ALL);
- if (result < 0)
+ int gdb_result;
+
+ gdb_result = catch_errors (gdb_do_one_event, 0, "", RETURN_MASK_ALL);
+ if (gdb_result < 0)
break;
- if (result == 0)
+ if (gdb_result == 0)
{
/* FIXME: this should really be a call to a hook that is
interface specific, because interfaces can display the