gdb: remove VALUE_REGNUM, add value::regnum
authorSimon Marchi <simon.marchi@polymtl.ca>
Sun, 24 Dec 2023 15:38:35 +0000 (10:38 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 24 Dec 2023 16:15:01 +0000 (11:15 -0500)
commit78f2fd84e832c49a496ab712512be058c0c2912b
treea3a2968753c42b5fe6b940166689a42d9466822d
parent8b31004bd82d3833d042dc5d456e1279635734ab
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
gdb/frame.c
gdb/python/py-unwind.c
gdb/stack.c
gdb/valops.c
gdb/value.c
gdb/value.h