Skip to content

Commit 77d2113

Browse files
committed
gdb: make frame_register static
It is only used inside frame.c. Change-Id: I44eb46a5992412f8f8b4954b2284b0ef3b549504
1 parent 55fc162 commit 77d2113

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

gdb/frame.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,12 @@ frame_register_unwind (frame_info_ptr next_frame, int regnum,
11661166
release_value (value);
11671167
}
11681168

1169-
void
1169+
/* Get the value of the register that belongs to this FRAME. This
1170+
function is a wrapper to the call sequence ``frame_register_unwind
1171+
(get_next_frame (FRAME))''. As per frame_register_unwind(), if
1172+
VALUEP is NULL, the registers value is not fetched/computed. */
1173+
1174+
static void
11701175
frame_register (frame_info_ptr frame, int regnum,
11711176
int *optimizedp, int *unavailablep, enum lval_type *lvalp,
11721177
CORE_ADDR *addrp, int *realnump, gdb_byte *bufferp)

gdb/frame.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -511,17 +511,6 @@ extern ULONGEST get_frame_register_unsigned (frame_info_ptr frame,
511511
extern bool read_frame_register_unsigned (frame_info_ptr frame,
512512
int regnum, ULONGEST *val);
513513

514-
/* Get the value of the register that belongs to this FRAME. This
515-
function is a wrapper to the call sequence ``frame_register_unwind
516-
(get_next_frame (FRAME))''. As per frame_register_unwind(), if
517-
VALUEP is NULL, the registers value is not fetched/computed. */
518-
519-
extern void frame_register (frame_info_ptr frame, int regnum,
520-
int *optimizedp, int *unavailablep,
521-
enum lval_type *lvalp,
522-
CORE_ADDR *addrp, int *realnump,
523-
gdb_byte *valuep);
524-
525514
/* The reverse. Store a register value relative to the specified
526515
frame. Note: this call makes the frame's state undefined. The
527516
register and frame caches must be flushed. */

0 commit comments

Comments
 (0)