]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/value.c
gdb: add value::allocate_register
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 1 Dec 2023 16:27:26 +0000 (11:27 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 14 Dec 2023 16:04:49 +0000 (16:04 +0000)
commit6831f2cd547e6e18b2245a4f325f9960b1e732ec
tree1f09e017c5205ab833394b7ebe73dd40f31b443d
parent9fc79b423697825f7afcb4f1143edd3827711c4c
gdb: add value::allocate_register

Add value::allocate_register, to facilitate allocating a value
representing a register in a given frame (or rather, in the given
frame's previous frame).  It will be used in a subsequent patch.  I
changed one relatively obvious spot that could use it, to at least
exercise the code path.

Change-Id: Icd4960f5e471a74b657bb3596c88d89679ef3772
Reviewed-By: John Baldwin <jhb@FreeBSD.org>
gdb/regcache.c
gdb/value.c
gdb/value.h