]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdbserver/linux-low.cc
gdbserver: convert have_ptrace_getregset to a tribool
authorAndrew Burgess <aburgess@redhat.com>
Thu, 25 Jan 2024 14:10:42 +0000 (14:10 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Tue, 7 May 2024 15:26:43 +0000 (16:26 +0100)
commit0c58b372e07fe81d23e4fcf6d6cfee8394e8bce5
tree6a7cfe999fd0521aa5c520704e44fa35b5f5c1ec
parent3f1438a5b2ef4a6b2bd3cc0600033362c43de7b3
gdbserver: convert have_ptrace_getregset to a tribool

Convert the have_ptrace_getregset global within gdbserver to a
tribool.  This brings the flag into alignment with the corresponding
flag in GDB.

The gdbserver have_ptrace_getregset variable is already used as a
tribool, it just doesn't have the tribool type.

In a future commit I plan to share more code between GDB and
gdbserver, and having this variable be the same type in both code
bases will make the sharing much easier.

There should be no user visible changes after this commit.

Approved-By: John Baldwin <jhb@FreeBSD.org>
Reviewed-By: Felix Willgerodt <felix.willgerodt@intel.com>
gdbserver/linux-arm-low.cc
gdbserver/linux-low.cc
gdbserver/linux-low.h
gdbserver/linux-x86-low.cc