This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [pushed] sss-bp-on-user-bp-2.exp sometimes fails on native GNU/Linux.
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Joel Brobecker <brobecker at adacore dot com>
- Date: Mon, 09 Jun 2014 15:26:08 +0100
- Subject: Re: [pushed] sss-bp-on-user-bp-2.exp sometimes fails on native GNU/Linux.
- Authentication-results: sourceware.org; auth=none
- References: <1401394280-14999-1-git-send-email-brobecker at adacore dot com> <5387BFF0 dot 6010208 at redhat dot com> <20140530122253 dot GC4289 at adacore dot com> <53887ED5 dot 5050603 at redhat dot com> <20140530132659 dot GD4289 at adacore dot com> <20140530193549 dot GF4289 at adacore dot com> <538D05CC dot 8050608 at redhat dot com> <538D85A9 dot 5010004 at redhat dot com> <538DB728 dot 7080702 at redhat dot com> <538DC8D5 dot 507 at redhat dot com> <539210E5 dot 60000 at redhat dot com>
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