]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/gdbserver/linux-low.c
Ensure ptrace() calls cast arguments 3 and 4 appropriately.
authorMarcus Shawcroft <mshawcroft@sourceware.org>
Mon, 4 Feb 2013 17:47:00 +0000 (17:47 +0000)
committerMarcus Shawcroft <mshawcroft@sourceware.org>
Mon, 4 Feb 2013 17:47:00 +0000 (17:47 +0000)
commit56f7af9cb08878ff05956c243fbd6882b915c9ce
tree8d37bcce1585085dcca4dc6d5618d7e974a20c00
parent5ee43bc47a6a0c04a878210c869f523a843878dd
Ensure ptrace() calls cast arguments 3 and 4 appropriately.

        * linux-low.c (handle_extended_wait, linux_create_inferior)
        (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
        (dequeue_one_deferred_signal, linux_resume_one_thread)
        (fetch_register, linux_write_memory, linux_enable_event_reporting)
        (linux_tracefork_grandchild, linux_test_for_tracefork)
        (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo ): Add
        PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
        where the argument is 0.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c