diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2022-11-29 22:42:08 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-12-01 13:29:24 -0500 |
commit | 77d2113f27eac3ad9b4dcaa7768b428dd7c59ae8 (patch) | |
tree | bbf3ece5c0d65ad1a5aa3b563e83d4e2048e1c5f /gdb | |
parent | 55fc1623f942fba10362cb199f9356d75ca5835b (diff) | |
download | binutils-77d2113f27eac3ad9b4dcaa7768b428dd7c59ae8.zip binutils-77d2113f27eac3ad9b4dcaa7768b428dd7c59ae8.tar.gz binutils-77d2113f27eac3ad9b4dcaa7768b428dd7c59ae8.tar.bz2 |
gdb: make frame_register static
It is only used inside frame.c.
Change-Id: I44eb46a5992412f8f8b4954b2284b0ef3b549504
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/frame.c | 7 | ||||
-rw-r--r-- | gdb/frame.h | 11 |
2 files changed, 6 insertions, 12 deletions
diff --git a/gdb/frame.c b/gdb/frame.c index c8c4ec8..b4079ef 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -1166,7 +1166,12 @@ frame_register_unwind (frame_info_ptr next_frame, int regnum, release_value (value); } -void +/* Get the value of the register that belongs to this FRAME. This + function is a wrapper to the call sequence ``frame_register_unwind + (get_next_frame (FRAME))''. As per frame_register_unwind(), if + VALUEP is NULL, the registers value is not fetched/computed. */ + +static void frame_register (frame_info_ptr frame, int regnum, int *optimizedp, int *unavailablep, enum lval_type *lvalp, CORE_ADDR *addrp, int *realnump, gdb_byte *bufferp) diff --git a/gdb/frame.h b/gdb/frame.h index 6b841fd..100ab1f 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -511,17 +511,6 @@ extern ULONGEST get_frame_register_unsigned (frame_info_ptr frame, extern bool read_frame_register_unsigned (frame_info_ptr frame, int regnum, ULONGEST *val); -/* Get the value of the register that belongs to this FRAME. This - function is a wrapper to the call sequence ``frame_register_unwind - (get_next_frame (FRAME))''. As per frame_register_unwind(), if - VALUEP is NULL, the registers value is not fetched/computed. */ - -extern void frame_register (frame_info_ptr frame, int regnum, - int *optimizedp, int *unavailablep, - enum lval_type *lvalp, - CORE_ADDR *addrp, int *realnump, - gdb_byte *valuep); - /* The reverse. Store a register value relative to the specified frame. Note: this call makes the frame's state undefined. The register and frame caches must be flushed. */ |