thread: add can_access_registers_ptid
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 20 Jan 2017 08:05:03 +0000 (09:05 +0100)
committerMarkus Metzger <markus.t.metzger@intel.com>
Wed, 1 Feb 2017 13:34:31 +0000 (14:34 +0100)
commitcf77c34ea71c27c3cb6dd31c9448249276e8a8a6
tree322c7fa73050a9bcf38f1605fb74952998fd74c7
parentce7903706d30e5fa335dd96eaaab3ae914ff8e64
thread: add can_access_registers_ptid

Add a function can_access_registers_ptid that behaves like
validate_registers_access but returns a boolean value instead of throwing an
exception.

gdb/
* gdbthread.h (can_access_registers_ptid): New.
* thread.c (can_access_registers_ptid): New.
gdb/ChangeLog
gdb/gdbthread.h
gdb/thread.c