]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Linux gdbserver fork event debug output
authorPedro Alves <palves@redhat.com>
Thu, 6 Aug 2015 11:07:09 +0000 (12:07 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 6 Aug 2015 11:07:09 +0000 (12:07 +0100)
commitd8f4deab5c7fc63c31bcfa08068301cc23d50df5
tree0fa2dfa6a830525536271b02e5a64522c7a0bce9
parentb1da2fa219508f7e00bcba44e0a38497dd70ca99
Linux gdbserver fork event debug output

The "extended event with waitstatus" debug output is unreachable, as
it is guarded by "if (!report_to_gdb)".  If extended_event_reported is
true, then so is report_to_gdb.  Move it to where we print why we're
reporting an event to GDB.

Also, the debug output currently tries to print the wrong struct
target_waitstatus.

gdb/gdbserver/ChangeLog:
2015-08-06  Pedro Alves  <palves@redhat.com>

* linux-low.c (linux_wait_1): Move fork event output out of the
!report_to_gdb check.  Pass event_child->waitstatus to
target_waitstatus_to_string instead of ourstatus.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c