gdb: c++ify btrace_target_info
authorMarkus Metzger <markus.t.metzger@intel.com>
Thu, 17 Aug 2023 10:17:26 +0000 (10:17 +0000)
committerMarkus Metzger <markus.t.metzger@intel.com>
Mon, 11 Sep 2023 06:15:52 +0000 (06:15 +0000)
commitcdda72c2fa1e47c566c7b5768f3831a1cc11d263
tree5d360d7def2b0cb0150f70c8f1fb61b07dd7d2e0
parent1bcb9dcf4a9d348d4f970d6d3f8146eae2036010
gdb: c++ify btrace_target_info

Following the example of private_thread_info and private_inferior, turn
struct btrace_target_info into a small class hierarchy.

Also merge btrace_tinfo_bts with btrace_tinfo_pt and inline into
linux_btrace_target_info.

Fixes PR gdb/30751.
gdb/nat/linux-btrace.c
gdb/nat/linux-btrace.h
gdb/remote.c
gdbsupport/btrace-common.h