fbsd-nat: Pass an optional register base to the register set helpers.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 22 Nov 2022 22:21:13 +0000 (14:21 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 22 Nov 2022 22:35:31 +0000 (14:35 -0800)
commita141d32c6ef5c644c856d89de88f9980ec3d8ceb
treec20953671561b46c6e6f3635af6d471c45750e40
parent5dd6c79a323a9ca7bf8d5db3206532580365127e
fbsd-nat: Pass an optional register base to the register set helpers.

This is needed to permit using the helpers for register sets with a
variable base.  In particular regnum needs to be converted into a
relative register number before passed to regcache_map_supplies.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/fbsd-nat.c
gdb/fbsd-nat.h