diff options
author | Yao Qi <yao.qi@linaro.org> | 2017-07-28 09:57:37 +0100 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2018-03-13 14:32:00 +0000 |
commit | 2f87902721c4555a8559da6283c8da49f2945311 (patch) | |
tree | aba5f871cf5950c1ef05f40f1c9c2ea3b3111440 | |
parent | 81e4b7e1e7d72e0593f05f5b37ab0d781492aa58 (diff) |
Move frame_id_build_unavailable_stack staticusers/qiyao/frame-unwind-unavailable-3
frame_id_build_unavailable_stack is only used in frame.c, so make it static.
gdb:
2017-07-28 Yao Qi <yao.qi@linaro.org>
* frame.c (frame_id_build_unavailable_stack): Move it up.
* frame.h (frame_id_build_unavailable_stack): Remove the declaration.
-rw-r--r-- | gdb/frame.c | 29 | ||||
-rw-r--r-- | gdb/frame.h | 6 |
2 files changed, 16 insertions, 19 deletions
diff --git a/gdb/frame.c b/gdb/frame.c index 7307ec42a3a..b4e1df44aab 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -485,6 +485,22 @@ skip_tailcall_frames (struct frame_info *frame) return frame; } +/* Construct a frame ID representing a frame where the stack address + exists, but is unavailable. CODE_ADDR is the frame's constant code + address (typically the entry point). The special identifier + address is set to indicate a wild card. */ + +static struct frame_id +frame_id_build_unavailable_stack (CORE_ADDR code_addr) +{ + struct frame_id id = null_frame_id; + + id.stack_status = FID_STACK_UNAVAILABLE; + id.code_addr = code_addr; + id.code_addr_p = 1; + return id; +} + /* Compute the frame's uniq ID that can be used to, later, re-find the frame. */ @@ -619,19 +635,6 @@ frame_id_build_special (CORE_ADDR stack_addr, CORE_ADDR code_addr, /* See frame.h. */ struct frame_id -frame_id_build_unavailable_stack (CORE_ADDR code_addr) -{ - struct frame_id id = null_frame_id; - - id.stack_status = FID_STACK_UNAVAILABLE; - id.code_addr = code_addr; - id.code_addr_p = 1; - return id; -} - -/* See frame.h. */ - -struct frame_id frame_id_build_unavailable_stack_special (CORE_ADDR code_addr, CORE_ADDR special_addr) { diff --git a/gdb/frame.h b/gdb/frame.h index d5800b78c25..d75a72d1012 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -198,12 +198,6 @@ extern struct frame_id frame_id_build_special (CORE_ADDR stack_addr, /* Construct a frame ID representing a frame where the stack address exists, but is unavailable. CODE_ADDR is the frame's constant code - address (typically the entry point). The special identifier - address is set to indicate a wild card. */ -extern struct frame_id frame_id_build_unavailable_stack (CORE_ADDR code_addr); - -/* Construct a frame ID representing a frame where the stack address - exists, but is unavailable. CODE_ADDR is the frame's constant code address (typically the entry point). SPECIAL_ADDR is the special identifier address. */ extern struct frame_id |