This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [pushed] sss-bp-on-user-bp-2.exp sometimes fails on native GNU/Linux.


On 06/06/2014 08:05 PM, Pedro Alves wrote:

> Enabling infrun/target debug logs, we can see the problem.
> Simplified, that's:
> 
>  (gdb) PASS: gdb.base/sss-bp-on-user-bp-2.exp: define stepi_del_break
>  stepi_del_break
>  infrun: clear_proceed_status_thread (process 25311)
>  infrun: resume (step=1, signal=GDB_SIGNAL_0), trap_expected=0, current thread [process 25311] at 0x400594
>  LLR: PTRACE_SINGLESTEP process 25311, 0 (resume event thread)
>  target_resume (25311, step, 0)
>  native:target_xfer_partial (3, (null), 0x0, 0x32dce4c, 0x400595, 1) = 0, 0
>  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>  (gdb) linux_nat_wait: [process -1], [TARGET_WNOHANG]
> 
> 0x400595 is the address of the breakpoint, and "= 0" is
> TARGET_XFER_EOF.  That's default_memory_remove_breakpoint trying to
> remove the breakpoint, but failing.

I was quite surprised this didn't result in a user visible warning.
Turns out that's a regression compared to 7.7.  This fixes it:

 https://sourceware.org/ml/gdb-patches/2014-06/msg00377.html

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]