diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-12-24 10:38:35 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-12-24 11:15:01 -0500 |
commit | 78f2fd84e832c49a496ab712512be058c0c2912b (patch) | |
tree | a3a2968753c42b5fe6b940166689a42d9466822d /gdb/stack.c | |
parent | 8b31004bd82d3833d042dc5d456e1279635734ab (diff) | |
download | gdb-78f2fd84e832c49a496ab712512be058c0c2912b.zip gdb-78f2fd84e832c49a496ab712512be058c0c2912b.tar.gz gdb-78f2fd84e832c49a496ab712512be058c0c2912b.tar.bz2 |
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
Diffstat (limited to 'gdb/stack.c')
-rw-r--r-- | gdb/stack.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/stack.c b/gdb/stack.c index 20bb85e..fad4b62 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -1724,8 +1724,7 @@ info_frame_command_core (frame_info_ptr fi, bool selected_frame_p) else if (value->lval () == lval_register) { gdb_printf (" Previous frame's sp in %s\n", - gdbarch_register_name (gdbarch, - VALUE_REGNUM (value))); + gdbarch_register_name (gdbarch, value->regnum ())); } release_value (value); |