mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-19 01:19:41 +08:00
GDB: frame: Make VALUEP argument optional in frame_register_unwind
It already accepts a nullptr value and a couple of places were always calling it that way, so make it possible to omit the argument entirely. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@@ -685,14 +685,14 @@ const char *unwind_stop_reason_to_string (enum unwind_stop_reason);
|
||||
const char *frame_stop_reason_string (const frame_info_ptr &);
|
||||
|
||||
/* Unwind the stack frame so that the value of REGNUM, in the previous
|
||||
(up, older) frame is returned. If VALUEP is NULL, don't
|
||||
(up, older) frame is returned. If VALUEP is nullptr, don't
|
||||
fetch/compute the value. Instead just return the location of the
|
||||
value. */
|
||||
extern void frame_register_unwind (const frame_info_ptr &frame, int regnum,
|
||||
int *optimizedp, int *unavailablep,
|
||||
enum lval_type *lvalp,
|
||||
CORE_ADDR *addrp, int *realnump,
|
||||
gdb_byte *valuep);
|
||||
gdb_byte *valuep = nullptr);
|
||||
|
||||
/* Fetch a register from this, or unwind a register from the next
|
||||
frame. Note that the get_frame methods are wrappers to
|
||||
|
||||
Reference in New Issue
Block a user