This is the mail archive of the gdb-prs@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]

[Bug record/19187] running with process record over a fork causes GDB internal error


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

--- Comment #11 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The gdb-7.12-branch branch has been updated by Pedro Alves
<palves@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=aac9c6220f36cea74d13cd02cce6c64d49f41f34

commit aac9c6220f36cea74d13cd02cce6c64d49f41f34
Author: Pedro Alves <palves@redhat.com>
Date:   Wed Aug 10 23:06:01 2016 +0100

    Plumb enum remove_bp_reason all the way to target_remove_breakpoint

    So the target knows whether we're detaching breakpoints.
    Nothing uses the parameter in this patch yet.

    gdb/ChangeLog:
    2016-08-10  Pedro Alves  <palves@redhat.com>

        PR gdb/19187
        * break-catch-sig.c (signal_catchpoint_remove_location): Adjust
        interface.
        * break-catch-syscall.c (remove_catch_syscall):
        * breakpoint.c (enum remove_bp_reason): Moved to breakpoint.h.
        (remove_breakpoint_1): Pass 'reason' down.
        (remove_catch_fork, remove_catch_vfork, remove_catch_solib)
        (remove_catch_exec, remove_watchpoint, remove_masked_watchpoint)
        (base_breakpoint_remove_location, bkpt_remove_location)
        (bkpt_probe_remove_location, bkpt_probe_remove_location): Adjust
        interface.
        * breakpoint.h (enum remove_bp_reason): Moved here from
        breakpoint.c.
        (struct breakpoint_ops) <remove_location>: Add 'reason' parameter.
        * corelow.c (core_remove_breakpoint): New function.
        (init_core_ops): Install it as to_remove_breakpoint method.
        * exec.c (exec_remove_breakpoint): New function.
        (init_exec_ops): Install it as to_remove_breakpoint method.
        * mem-break.c (memory_remove_breakpoint): Adjust interface.
        * record-btrace.c (record_btrace_remove_breakpoint): Adjust
        interface.
        * record-full.c (record_full_remove_breakpoint)
        (record_full_core_remove_breakpoint): Adjust interface.
        * remote.c (remote_remove_breakpoint): Adjust interface.
        * target-debug.h (target_debug_print_enum_remove_bp_reason): New
        macro.
        * target-delegates.c: Regenerate.
        * target.c (target_remove_breakpoint): Add 'reason' parameter.
        * target.h (struct target_ops) <to_remove_breakpoint>: Add
        'reason' parameter.
        (target_remove_breakpoint, memory_remove_breakpoint): Add 'reason'
        parameter.

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

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