]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Move frame_id_build_unavailable_stack static users/qiyao/frame-unwind-unavailable-3
authorYao Qi <yao.qi@linaro.org>
Fri, 28 Jul 2017 08:57:37 +0000 (09:57 +0100)
committerYao Qi <yao.qi@linaro.org>
Tue, 13 Mar 2018 14:32:00 +0000 (14:32 +0000)
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.

gdb/frame.c
gdb/frame.h

index 7307ec42a3a747b2917af23b2783bd45ab437144..b4e1df44aab23a18cc46b709d1e63e849ba8e79b 100644 (file)
@@ -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.  */
 
@@ -618,19 +634,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)
index d5800b78c2568b19c9a943dc3661b730b76f69ab..d75a72d1012a8491a91f1edf79935c512ce5a04c 100644 (file)
@@ -196,12 +196,6 @@ extern struct frame_id frame_id_build_special (CORE_ADDR stack_addr,
                                               CORE_ADDR code_addr,
                                               CORE_ADDR special_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