diff options
author | Dave Watson <davejwatson@fb.com> | 2017-12-28 08:26:42 -0800 |
---|---|---|
committer | Dave Watson <davejwatson@fb.com> | 2017-12-28 08:26:42 -0800 |
commit | a1437a3d27924e17d00021df3cc659bd998e8580 (patch) | |
tree | 1cf3ed29e4028effadda78422e3f320082c1ac54 /src/x86_64 | |
parent | 29137c6fa9303eedc310a467e508716813174414 (diff) | |
download | libunwind-a1437a3d27924e17d00021df3cc659bd998e8580.tar.gz |
Remove PROTECTED visibility
This only works on bfd ld, not lld or gold.
Diffstat (limited to 'src/x86_64')
-rw-r--r-- | src/x86_64/Gapply_reg_state.c | 2 | ||||
-rw-r--r-- | src/x86_64/Gcreate_addr_space.c | 2 | ||||
-rw-r--r-- | src/x86_64/Gget_proc_info.c | 2 | ||||
-rw-r--r-- | src/x86_64/Gget_save_loc.c | 2 | ||||
-rw-r--r-- | src/x86_64/Ginit.c | 4 | ||||
-rw-r--r-- | src/x86_64/Ginit_local.c | 6 | ||||
-rw-r--r-- | src/x86_64/Ginit_remote.c | 2 | ||||
-rw-r--r-- | src/x86_64/Gos-freebsd.c | 4 | ||||
-rw-r--r-- | src/x86_64/Gos-linux.c | 4 | ||||
-rw-r--r-- | src/x86_64/Greg_states_iterate.c | 2 | ||||
-rw-r--r-- | src/x86_64/Gresume.c | 2 | ||||
-rw-r--r-- | src/x86_64/Gstep.c | 2 | ||||
-rw-r--r-- | src/x86_64/is_fpreg.c | 2 | ||||
-rw-r--r-- | src/x86_64/regname.c | 2 |
14 files changed, 19 insertions, 19 deletions
diff --git a/src/x86_64/Gapply_reg_state.c b/src/x86_64/Gapply_reg_state.c index eec93046..82f056da 100644 --- a/src/x86_64/Gapply_reg_state.c +++ b/src/x86_64/Gapply_reg_state.c @@ -27,7 +27,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "unwind_i.h" -PROTECTED int +int unw_apply_reg_state (unw_cursor_t *cursor, void *reg_states_data) { diff --git a/src/x86_64/Gcreate_addr_space.c b/src/x86_64/Gcreate_addr_space.c index 38ee5afb..9b2db981 100644 --- a/src/x86_64/Gcreate_addr_space.c +++ b/src/x86_64/Gcreate_addr_space.c @@ -34,7 +34,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #define __LITTLE_ENDIAN _LITTLE_ENDIAN #endif -PROTECTED unw_addr_space_t +unw_addr_space_t unw_create_addr_space (unw_accessors_t *a, int byte_order) { #ifdef UNW_LOCAL_ONLY diff --git a/src/x86_64/Gget_proc_info.c b/src/x86_64/Gget_proc_info.c index 8def62d2..50de1e42 100644 --- a/src/x86_64/Gget_proc_info.c +++ b/src/x86_64/Gget_proc_info.c @@ -27,7 +27,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "unwind_i.h" -PROTECTED int +int unw_get_proc_info (unw_cursor_t *cursor, unw_proc_info_t *pi) { struct cursor *c = (struct cursor *) cursor; diff --git a/src/x86_64/Gget_save_loc.c b/src/x86_64/Gget_save_loc.c index b48fa918..0057c62d 100644 --- a/src/x86_64/Gget_save_loc.c +++ b/src/x86_64/Gget_save_loc.c @@ -27,7 +27,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "unwind_i.h" -PROTECTED int +int unw_get_save_loc (unw_cursor_t *cursor, int reg, unw_save_loc_t *sloc) { struct cursor *c = (struct cursor *) cursor; diff --git a/src/x86_64/Ginit.c b/src/x86_64/Ginit.c index c66d59ba..6281b767 100644 --- a/src/x86_64/Ginit.c +++ b/src/x86_64/Ginit.c @@ -40,13 +40,13 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifdef UNW_REMOTE_ONLY /* unw_local_addr_space is a NULL pointer in this case. */ -PROTECTED unw_addr_space_t unw_local_addr_space; +unw_addr_space_t unw_local_addr_space; #else /* !UNW_REMOTE_ONLY */ static struct unw_addr_space local_addr_space; -PROTECTED unw_addr_space_t unw_local_addr_space = &local_addr_space; +unw_addr_space_t unw_local_addr_space = &local_addr_space; HIDDEN unw_dyn_info_list_t _U_dyn_info_list; diff --git a/src/x86_64/Ginit_local.c b/src/x86_64/Ginit_local.c index 7696f11c..5eaead0f 100644 --- a/src/x86_64/Ginit_local.c +++ b/src/x86_64/Ginit_local.c @@ -30,7 +30,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifdef UNW_REMOTE_ONLY -PROTECTED int +int unw_init_local (unw_cursor_t *cursor, ucontext_t *uc) { return -UNW_EINVAL; @@ -55,13 +55,13 @@ unw_init_local_common (unw_cursor_t *cursor, ucontext_t *uc, unsigned use_prev_i return common_init (c, use_prev_instr); } -PROTECTED int +int unw_init_local (unw_cursor_t *cursor, ucontext_t *uc) { return unw_init_local_common(cursor, uc, 1); } -PROTECTED int +int unw_init_local2 (unw_cursor_t *cursor, ucontext_t *uc, int flag) { if (!flag) diff --git a/src/x86_64/Ginit_remote.c b/src/x86_64/Ginit_remote.c index f3b7bb97..efd61d64 100644 --- a/src/x86_64/Ginit_remote.c +++ b/src/x86_64/Ginit_remote.c @@ -28,7 +28,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "init.h" #include "unwind_i.h" -PROTECTED int +int unw_init_remote (unw_cursor_t *cursor, unw_addr_space_t as, void *as_arg) { #ifdef UNW_LOCAL_ONLY diff --git a/src/x86_64/Gos-freebsd.c b/src/x86_64/Gos-freebsd.c index 8701aefb..c640ad5e 100644 --- a/src/x86_64/Gos-freebsd.c +++ b/src/x86_64/Gos-freebsd.c @@ -33,7 +33,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "unwind_i.h" #include "ucontext_i.h" -PROTECTED int +int unw_is_signal_frame (unw_cursor_t *cursor) { /* XXXKIB */ @@ -87,7 +87,7 @@ eb fd jmp 0b return (X86_64_SCF_NONE); } -PROTECTED int +int unw_handle_signal_frame (unw_cursor_t *cursor) { struct cursor *c = (struct cursor *) cursor; diff --git a/src/x86_64/Gos-linux.c b/src/x86_64/Gos-linux.c index 0a3c2122..ad91a678 100644 --- a/src/x86_64/Gos-linux.c +++ b/src/x86_64/Gos-linux.c @@ -76,14 +76,14 @@ tdep_reuse_frame (struct dwarf_cursor *dw, int frame) ? c->frame_info.cfa_reg_offset : 0)); } -PROTECTED int +int unw_is_signal_frame (unw_cursor_t *cursor) { struct cursor *c = (struct cursor *) cursor; return c->sigcontext_format != X86_64_SCF_NONE; } -PROTECTED int +int unw_handle_signal_frame (unw_cursor_t *cursor) { #if UNW_DEBUG /* To silence compiler warnings */ diff --git a/src/x86_64/Greg_states_iterate.c b/src/x86_64/Greg_states_iterate.c index a39837a1..a17dc1b5 100644 --- a/src/x86_64/Greg_states_iterate.c +++ b/src/x86_64/Greg_states_iterate.c @@ -27,7 +27,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "unwind_i.h" -PROTECTED int +int unw_reg_states_iterate (unw_cursor_t *cursor, unw_reg_states_callback cb, void *token) { diff --git a/src/x86_64/Gresume.c b/src/x86_64/Gresume.c index 3d40756e..944cdaae 100644 --- a/src/x86_64/Gresume.c +++ b/src/x86_64/Gresume.c @@ -107,7 +107,7 @@ establish_machine_state (struct cursor *c) return 0; } -PROTECTED int +int unw_resume (unw_cursor_t *cursor) { struct cursor *c = (struct cursor *) cursor; diff --git a/src/x86_64/Gstep.c b/src/x86_64/Gstep.c index 5af13e0c..0d385f28 100644 --- a/src/x86_64/Gstep.c +++ b/src/x86_64/Gstep.c @@ -52,7 +52,7 @@ is_plt_entry (struct dwarf_cursor *c) return ret; } -PROTECTED int +int unw_step (unw_cursor_t *cursor) { struct cursor *c = (struct cursor *) cursor; diff --git a/src/x86_64/is_fpreg.c b/src/x86_64/is_fpreg.c index 1188a616..5c036137 100644 --- a/src/x86_64/is_fpreg.c +++ b/src/x86_64/is_fpreg.c @@ -27,7 +27,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "libunwind_i.h" -PROTECTED int +int unw_is_fpreg (int regnum) { #if 0 diff --git a/src/x86_64/regname.c b/src/x86_64/regname.c index 6c0e2f35..77660af4 100644 --- a/src/x86_64/regname.c +++ b/src/x86_64/regname.c @@ -46,7 +46,7 @@ static const char *regname[] = "RIP", }; -PROTECTED const char * +const char * unw_regname (unw_regnum_t reg) { if (reg < (unw_regnum_t) ARRAY_SIZE (regname)) |