[Bug breakpoints/21497] FreeBSD: infrun.c:5565: internal-error: int finish_step_over(execution_control_state*): Assertion `ecs->event_thread->control.trap_expected' failed

palves at redhat dot com sourceware-bugzilla@sourceware.org
Thu May 18 12:40:00 GMT 2017


https://sourceware.org/bugzilla/show_bug.cgi?id=21497

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |palves at redhat dot com

--- Comment #1 from Pedro Alves <palves at redhat dot com> ---
Thanks for that analysis, that helps a lot.

> So far so good, everything is setup to single-step LWP 102181. However, 
> because it is single stepping, it is expecting to only receive events about 
> that thread. However, there was already a thread-create event pending when the 
> breakpoint occurred. Therefore the next event that gets returned from pthread > is actually a create for a different thread.

That's the problem then.  The backend should not report stop events to the core
for threads that the core did not resume.   So until the core of GDB sends a
wildcard "resume the whole process" resumption request, the backend should hold
that event pending somehow.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list