aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1991-12-14 00:13:05 +0000
committerFred Fish <fnf@specifix.com>1991-12-14 00:13:05 +0000
commit619fd1455b71e4e6089b00c85b53328ffdc8fd43 (patch)
tree16b56109ccad8b4de431d42699dda3fed23c9e9c /gdb/infrun.c
parentdd1f25e0785e7e552b68b650b4219390791f8ffe (diff)
downloadgdb-619fd1455b71e4e6089b00c85b53328ffdc8fd43.zip
gdb-619fd1455b71e4e6089b00c85b53328ffdc8fd43.tar.gz
gdb-619fd1455b71e4e6089b00c85b53328ffdc8fd43.tar.bz2
Fix miscellaneous comparisons of integer with NULL that elicit compiler
warnings about comparisons of integer with pointer when NULL is defined as ((void *) 0) rather than just a bare 0.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 3ca563f..43932f7 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -119,7 +119,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <stdio.h>
#include <string.h>
#include "defs.h"
-#include "param.h"
#include "symtab.h"
#include "frame.h"
#include "inferior.h"
@@ -150,6 +149,8 @@ extern int original_stack_limit;
extern char *getenv ();
extern char **environ;
+extern void new_tty_prefork (); /* In inflow.c */
+
extern struct target_ops child_ops; /* In inftarg.c */
@@ -901,7 +902,7 @@ wait_for_inferior ()
will be set and we should check whether we've hit the
step breakpoint. */
if (stop_signal == SIGTRAP && trap_expected
- && step_resume_break_address == NULL)
+ && step_resume_break_address == 0)
bpstat_clear (&stop_bpstat);
else
{
@@ -1312,7 +1313,7 @@ wait_for_inferior ()
breakpoints_inserted = 0;
}
else if (!breakpoints_inserted &&
- (step_resume_break_address != NULL || !another_trap))
+ (step_resume_break_address != 0 || !another_trap))
{
insert_step_breakpoint ();
breakpoints_failed = insert_breakpoints ();