Add a new debug knob for the FreeBSD native target.
authorJohn Baldwin <jhb@FreeBSD.org>
Sun, 4 Mar 2018 05:25:33 +0000 (21:25 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Sun, 4 Mar 2018 05:25:33 +0000 (21:25 -0800)
commit386a86761838df16c1459275d465ed21a1c35d9f
tree5b24b643b0ad42b806439d31fe7977eba55cb6f7
parent12279366d71627bfbdd74d1a6675dca825d8feca
Add a new debug knob for the FreeBSD native target.

For now this just logs information about the state of the current LWP
for each STOPPED event in fbsd_wait().

gdb/ChangeLog:

* NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
* fbsd-nat.c (debug_fbsd_nat): New variable.
(show_fbsd_nat_debug): New function.
(fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
(_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.

gdb/doc/ChangeLog:

* gdb.texinfo (Debugging Output): Document "set/show debug
fbsd-nat".
gdb/ChangeLog
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/fbsd-nat.c