[PATCH] Add support for NetBSD thread events (create, exit)

Kamil Rytarowski n54@gmx.com
Thu Apr 30 13:59:43 GMT 2020


Hello,

Please review.

commit 5446f5e7983ad9383e3bc0469327c94baa5e0587 (HEAD -> netbsd-3)
Author: Kamil Rytarowski <n54@gmx.com>
Date:   Thu Apr 30 16:13:33 2020 +0200

    Add support for NetBSD thread events (create, exit)

    Report LWP CREATE and LWP EXIT events and setup this on post_attach()
    and post_startup_inferior().

    Stop reinitializing the list of recognized threads in update_thread_list().

    Handle LWP CREATE and EXIT events in nbsd_nat_target::wait().

    gdb/ChangeLog:

            * nbsd-nat.c (nbsd_enable_proc_events)
            (nbsd_nat_target::post_startup_inferior): Add.
            (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
            (nbsd_nat_target::update_thread_list): Rewrite.
            (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
            "PTRACE_LWP_CREATE".
            * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-support-for-NetBSD-thread-events-create-exit.patch
Type: text/x-patch
Size: 5476 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/gdb-patches/attachments/20200430/4b386c88/attachment.bin>


More information about the Gdb-patches mailing list