summaryrefslogtreecommitdiff
path: root/gdb/event-loop.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-09-30 21:25:47 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-09-30 21:25:47 +0000
commit802d87af9cfc532830aa9510add9dd239bce93e8 (patch)
treebfa9611fa577136ee01f88fbd65f5cf2d2ba8324 /gdb/event-loop.c
parent3c927fc96109ac289b7fd14f5ca3022c509a0d26 (diff)
downloadgdb-802d87af9cfc532830aa9510add9dd239bce93e8.tar.gz
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.
Diffstat (limited to 'gdb/event-loop.c')
-rw-r--r--gdb/event-loop.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/event-loop.c b/gdb/event-loop.c
index 03eb41c6b16..0fa37c11f96 100644
--- a/gdb/event-loop.c
+++ b/gdb/event-loop.c
@@ -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