aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorAndrew Stubbs <andrew.stubbs@st.com>2005-11-07 15:27:07 +0000
committerAndrew Stubbs <andrew.stubbs@st.com>2005-11-07 15:27:07 +0000
commitf17517ea066bd25def1a2800d327ba126730d16d (patch)
tree82880100363b3e720df40a40bbe8a231d66c7ff7 /gdb/infrun.c
parenteef57022010a5f6c7483c31607696fe1482b781e (diff)
downloadgdb-f17517ea066bd25def1a2800d327ba126730d16d.zip
gdb-f17517ea066bd25def1a2800d327ba126730d16d.tar.gz
gdb-f17517ea066bd25def1a2800d327ba126730d16d.tar.bz2
2005-11-07 Andrew Stubbs <andrew.stubbs@st.com>
* main.h (return_child_result, return_child_result_value): Declare. * infrun.c: Include main.h. (print_stop_reason): Remove declaration of return_child_result_value. * top.c: Include main.h. (quit_force): Remove declarations of return_child_result_value and return_child_result. * Makefile.in (top.o, infrun.o): Add main.h to dependencies.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index f1ebc3e..fab0a96 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -46,6 +46,7 @@
#include "observer.h"
#include "language.h"
#include "solib.h"
+#include "main.h"
#include "gdb_assert.h"
#include "mi/mi-common.h"
@@ -2931,11 +2932,8 @@ print_stop_reason (enum inferior_stop_reason stop_reason, int stop_info)
async_reason_lookup (EXEC_ASYNC_EXITED_NORMALLY));
ui_out_text (uiout, "\nProgram exited normally.\n");
}
- {
- /* Support the --return-child-result option. */
- extern int return_child_result_value;
- return_child_result_value = stop_info;
- }
+ /* Support the --return-child-result option. */
+ return_child_result_value = stop_info;
break;
case SIGNAL_RECEIVED:
/* Signal received. The signal table tells us to print about