diff --git a/external/gpl3/gdb/dist/gdb/inf-ptrace.c b/external/gpl3/gdb/dist/gdb/inf-ptrace.c index 452edfa18d29..999edb3697ac 100644 --- a/external/gpl3/gdb/dist/gdb/inf-ptrace.c +++ b/external/gpl3/gdb/dist/gdb/inf-ptrace.c @@ -345,6 +345,7 @@ inf_ptrace_resume (struct target_ops *ops, else request = PT_CONTINUE; +#if defined(__NetBSD__) && PT_STEP == 9 if (step) { /* If this system does not support PT_STEP, a higher level @@ -363,6 +364,7 @@ inf_ptrace_resume (struct target_ops *ops, sig = 0; #endif } else +#endif sig = gdb_signal_to_host (signal); /* An address of (PTRACE_TYPE_ARG3)1 tells ptrace to continue from