diff options
author | Per Bothner <per@bothner.com> | 1992-02-29 06:03:43 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1992-02-29 06:03:43 +0000 |
commit | 818de002b62ebfec9132b0089528f278a3ae88af (patch) | |
tree | c71713a6b291f42daf28abc8e5e7c01199ce7d90 /gdb/infrun.c | |
parent | 8eb8b9aaa36fbe087793ef0beda32060c8bdb745 (diff) | |
download | gdb-818de002b62ebfec9132b0089528f278a3ae88af.zip gdb-818de002b62ebfec9132b0089528f278a3ae88af.tar.gz gdb-818de002b62ebfec9132b0089528f278a3ae88af.tar.bz2 |
Mostly rs6000 changes from IBM.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 3be0bb9..f8bc976 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -307,7 +307,7 @@ resume (step, sig) #ifdef NO_SINGLE_STEP if (step) { - single_step(); /* Do it the hard way, w/temp breakpoints */ + single_step(sig); /* Do it the hard way, w/temp breakpoints */ step = 0; /* ...and don't ask hardware to do it. */ } #endif @@ -555,7 +555,7 @@ child_create_inferior (exec_file, allargs, env) #ifdef NEED_POSIX_SETPGID debug_setpgrp = setpgid (0, 0); #else -#ifdef USG +#if defined(USG) && !defined(SETPGRP_ARGS) debug_setpgrp = setpgrp (); #else debug_setpgrp = setpgrp (getpid (), getpid ()); @@ -916,7 +916,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 { @@ -1046,7 +1046,7 @@ wait_for_inferior () /* Need to blow away step-resume breakpoint, as it interferes with us */ remove_step_breakpoint (); - step_resume_break_address = NULL; + step_resume_break_address = 0; stop_step_resume_break = 0; #if 0 /* FIXME - Need to implement nested temporary breakpoints */ @@ -1409,7 +1409,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 (); |