aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 5eb749e..55c6894 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -187,7 +187,7 @@ run_command (args, from_tty)
dont_repeat ();
- if (inferior_pid && target_has_execution)
+ if (inferior_pid != 0 && target_has_execution)
{
if (
!query ("The program being debugged has been started already.\n\