From 78f2fd84e832c49a496ab712512be058c0c2912b Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sun, 24 Dec 2023 10:38:35 -0500 Subject: gdb: remove VALUE_REGNUM, add value::regnum Remove VALUE_REGNUM, replace it with a method on struct value. Set `m_location.reg.regnum` directly from value::allocate_register_lazy, which is fine because allocate_register_lazy is a static creation function for struct value. Change-Id: Id632502357da971617d9dce1e2eab9b56dbcf52d --- gdb/findvar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/findvar.c') diff --git a/gdb/findvar.c b/gdb/findvar.c index 91ee226..dc8a2f9 100644 --- a/gdb/findvar.c +++ b/gdb/findvar.c @@ -785,7 +785,7 @@ read_frame_register_value (value *value) gdbarch *gdbarch = frame_unwind_arch (next_frame); LONGEST offset = 0; LONGEST reg_offset = value->offset (); - int regnum = VALUE_REGNUM (value); + int regnum = value->regnum (); int len = type_length_units (check_typedef (value->type ())); /* Skip registers wholly inside of REG_OFFSET. */ -- cgit v1.1