]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
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>
Mon, 25 Mar 2024 17:14:18 +0000 (17:14 +0000)
commit5920765d7513aaae9241a1850d62d73e0477f81c
tree5856d3974a1037984255ee2455f6f1c62bb8bd58
parent874f4887f0361e953f7098459ae60a5f894d362a
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>
gdbserver/linux-arm-low.cc
gdbserver/linux-low.cc
gdbserver/linux-low.h
gdbserver/linux-x86-low.cc