aboutsummaryrefslogtreecommitdiff
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
commit3b8630c3eb7463d3ae269694c950152a91a3b5f9 (patch)
treebae277efb87a2a6090e064a4d2d027baf72fc42d /gdb/event-loop.c
parent5d42dcdf5f9e87828b9c3a596fd7b56f5a95232b (diff)
downloadgdb-3b8630c3eb7463d3ae269694c950152a91a3b5f9.zip
gdb-3b8630c3eb7463d3ae269694c950152a91a3b5f9.tar.gz
gdb-3b8630c3eb7463d3ae269694c950152a91a3b5f9.tar.bz2
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 03eb41c..0fa37c1 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