Fri Dec 1 22:19:59 2017 UTC ()
Back to stepping everyone.


(christos)
diff -r1.16 -r1.17 src/external/gpl3/gdb/dist/gdb/inf-ptrace.c

cvs diff -r1.16 -r1.17 src/external/gpl3/gdb/dist/gdb/inf-ptrace.c (expand / switch to unified diff)

--- src/external/gpl3/gdb/dist/gdb/inf-ptrace.c 2017/11/28 22:04:52 1.16
+++ src/external/gpl3/gdb/dist/gdb/inf-ptrace.c 2017/12/01 22:19:59 1.17
@@ -343,27 +343,27 @@ inf_ptrace_resume (struct target_ops *op @@ -343,27 +343,27 @@ inf_ptrace_resume (struct target_ops *op
343 if (catch_syscall_enabled () > 0) 343 if (catch_syscall_enabled () > 0)
344 request = PT_SYSCALL; 344 request = PT_SYSCALL;
345 else 345 else
346 request = PT_CONTINUE; 346 request = PT_CONTINUE;
347 347
348 if (step) 348 if (step)
349 { 349 {
350 /* If this system does not support PT_STEP, a higher level 350 /* If this system does not support PT_STEP, a higher level
351 function will have called single_step() to transmute the step 351 function will have called single_step() to transmute the step
352 request into a continue request (by setting breakpoints on 352 request into a continue request (by setting breakpoints on
353 all possible successor instructions), so we don't have to 353 all possible successor instructions), so we don't have to
354 worry about that here. */ 354 worry about that here. */
355 request = PT_STEP; 355 request = PT_STEP;
356#ifdef __NetBSD__ 356#if 0
357 /* 357 /*
358 * On NetBSD the data field of PT_STEP contains the thread 358 * On NetBSD the data field of PT_STEP contains the thread
359 * to be stepped; all other threads are continued if this value is > 0 359 * to be stepped; all other threads are continued if this value is > 0
360 */ 360 */
361 sig = ptid_get_lwp(ptid); 361 sig = ptid_get_lwp(ptid);
362#else 362#else
363 sig = 0; 363 sig = 0;
364#endif 364#endif
365 } else 365 } else
366 sig = gdb_signal_to_host (signal); 366 sig = gdb_signal_to_host (signal);
367 367
368 /* An address of (PTRACE_TYPE_ARG3)1 tells ptrace to continue from 368 /* An address of (PTRACE_TYPE_ARG3)1 tells ptrace to continue from
369 where it was. If GDB wanted it to start some other way, we have 369 where it was. If GDB wanted it to start some other way, we have