[libunwind][NFC] Typo fixes & comments corrections & code style changes. (#174565)
This commit is contained in:
parent
3ee9aae6f9
commit
0653e079c2
@ -122,7 +122,7 @@
|
||||
__unwind_ptrauth_restricted_intptr(ptrauth_key_function_pointer, 1, \
|
||||
__ptrauth_unwind_cie_info_personality_disc)
|
||||
|
||||
// ptrauth_string_discriminator("personality") == 0x7EAD)
|
||||
// ptrauth_string_discriminator("personality") == 0x7EAD
|
||||
#define __ptrauth_unwind_pauthtest_personality_disc 0x7EAD
|
||||
|
||||
#else
|
||||
|
||||
@ -443,7 +443,7 @@ struct unwind_info_section_header_lsda_index_entry
|
||||
|
||||
struct unwind_info_regular_second_level_entry
|
||||
{
|
||||
uint32_t functionOffset;
|
||||
uint32_t functionOffset;
|
||||
compact_unwind_encoding_t encoding;
|
||||
};
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ struct _Unwind_Exception {
|
||||
// The implementation of _Unwind_Exception uses an attribute mode on the
|
||||
// above fields which has the side effect of causing this whole struct to
|
||||
// round up to 32 bytes in size (48 with SEH). To be more explicit, we add
|
||||
// pad fields added for binary compatibility.
|
||||
// pad fields for binary compatibility.
|
||||
uint32_t reserved[3];
|
||||
#endif
|
||||
// The Itanium ABI requires that _Unwind_Exception objects are "double-word
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
#define _LIBUNWIND_FRAMEHEADERCACHE_TRACE(msg, ...)
|
||||
#endif
|
||||
|
||||
// This cache should only be be used from within a dl_iterate_phdr callback.
|
||||
// This cache should only be used from within a dl_iterate_phdr callback.
|
||||
// dl_iterate_phdr does the necessary synchronization to prevent problems
|
||||
// with concurrent access via the libc load lock. Adding synchronization
|
||||
// for other uses is possible, but not currently done.
|
||||
|
||||
@ -1893,7 +1893,7 @@ public:
|
||||
uint64_t value = _registers.__pc;
|
||||
#if defined(_LIBUNWIND_TARGET_AARCH64_AUTHENTICATED_UNWINDING)
|
||||
// Note the value of the PC was signed to its address in the register state
|
||||
// but everyone else expects it to be sign by the SP, so convert on return.
|
||||
// but everyone else expects it to be signed by the SP, so convert on return.
|
||||
value = (uint64_t)ptrauth_auth_and_resign((void *)_registers.__pc,
|
||||
ptrauth_key_return_address,
|
||||
&_registers.__pc,
|
||||
@ -3715,21 +3715,21 @@ inline void Registers_sparc::setRegister(int regNum, uint32_t value) {
|
||||
inline bool Registers_sparc::validFloatRegister(int) const { return false; }
|
||||
|
||||
inline double Registers_sparc::getFloatRegister(int) const {
|
||||
_LIBUNWIND_ABORT("no Sparc float registers");
|
||||
_LIBUNWIND_ABORT("no sparc float registers");
|
||||
}
|
||||
|
||||
inline void Registers_sparc::setFloatRegister(int, double) {
|
||||
_LIBUNWIND_ABORT("no Sparc float registers");
|
||||
_LIBUNWIND_ABORT("no sparc float registers");
|
||||
}
|
||||
|
||||
inline bool Registers_sparc::validVectorRegister(int) const { return false; }
|
||||
|
||||
inline v128 Registers_sparc::getVectorRegister(int) const {
|
||||
_LIBUNWIND_ABORT("no Sparc vector registers");
|
||||
_LIBUNWIND_ABORT("no sparc vector registers");
|
||||
}
|
||||
|
||||
inline void Registers_sparc::setVectorRegister(int, v128) {
|
||||
_LIBUNWIND_ABORT("no Sparc vector registers");
|
||||
_LIBUNWIND_ABORT("no sparc vector registers");
|
||||
}
|
||||
|
||||
inline const char *Registers_sparc::getRegisterName(int regNum) {
|
||||
|
||||
@ -963,7 +963,7 @@ template <typename A, typename R> bool UnwindCursor<A, R>::isSignalFrame() {
|
||||
/// UnwindCursor contains all state (including all register values) during
|
||||
/// an unwind. This is normally stack allocated inside a unw_cursor_t.
|
||||
template <typename A, typename R>
|
||||
class UnwindCursor : public AbstractUnwindCursor{
|
||||
class UnwindCursor : public AbstractUnwindCursor {
|
||||
typedef typename A::pint_t pint_t;
|
||||
public:
|
||||
UnwindCursor(unw_context_t *context, A &as);
|
||||
@ -2037,7 +2037,7 @@ bool UnwindCursor<A, R>::getInfoFromCompactEncodingSection(
|
||||
if (personalityIndex != 0) {
|
||||
--personalityIndex; // change 1-based to zero-based index
|
||||
if (personalityIndex >= sectionHeader.personalityArrayCount()) {
|
||||
_LIBUNWIND_DEBUG_LOG("found encoding 0x%08X with personality index %d, "
|
||||
_LIBUNWIND_DEBUG_LOG("found encoding 0x%08X with personality index %d, "
|
||||
"but personality table has only %d entries",
|
||||
encoding, personalityIndex,
|
||||
sectionHeader.personalityArrayCount());
|
||||
@ -3256,7 +3256,7 @@ int UnwindCursor<A, R>::stepThroughSigReturn() {
|
||||
|
||||
template <typename A, typename R> int UnwindCursor<A, R>::step(bool stage2) {
|
||||
(void)stage2;
|
||||
// Bottom of stack is defined is when unwind info cannot be found.
|
||||
// Bottom of stack is defined when unwind info cannot be found.
|
||||
if (_unwindInfoMissing)
|
||||
return UNW_STEP_END;
|
||||
|
||||
|
||||
@ -284,7 +284,7 @@ _LIBUNWIND_EXPORT void __deregister_frame(const void *fde) {
|
||||
// before 10.6 used keymgr to track known FDEs, but these functions
|
||||
// never got updated to use keymgr.
|
||||
// For now, we implement these as do-nothing functions to keep any existing
|
||||
// applications working. We also add the not in 10.6 symbol so that nwe
|
||||
// applications working. We also add the not in 10.6 symbol so that new
|
||||
// application won't be able to use them.
|
||||
|
||||
#if defined(_LIBUNWIND_SUPPORT_FRAME_APIS)
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
// ARM EHABI does not specify _Unwind_{Get,Set}{GR,IP}(). Thus, we are
|
||||
// defining inline functions to delegate the function calls to
|
||||
// _Unwind_VRS_{Get,Set}(). However, some applications might declare the
|
||||
// function protetype directly (instead of including <unwind.h>), thus we need
|
||||
// function prototype directly (instead of including <unwind.h>), thus we need
|
||||
// to export these functions from libunwind.so as well.
|
||||
#define _LIBUNWIND_UNWIND_LEVEL1_EXTERNAL_LINKAGE 1
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
|
||||
using namespace libunwind;
|
||||
|
||||
/// internal object to represent this processes address space
|
||||
/// internal object to represent this process's address space
|
||||
LocalAddressSpace LocalAddressSpace::sThisAddressSpace;
|
||||
|
||||
_LIBUNWIND_EXPORT unw_addr_space_t unw_local_addr_space =
|
||||
@ -306,7 +306,7 @@ _LIBUNWIND_HIDDEN int __unw_is_fpreg(unw_cursor_t *cursor,
|
||||
}
|
||||
_LIBUNWIND_WEAK_ALIAS(__unw_is_fpreg, unw_is_fpreg)
|
||||
|
||||
/// Checks if a register is a floating-point register.
|
||||
/// Get name of specified register at cursor position in stack frame.
|
||||
_LIBUNWIND_HIDDEN const char *__unw_regname(unw_cursor_t *cursor,
|
||||
unw_regnum_t regNum) {
|
||||
_LIBUNWIND_TRACE_API("__unw_regname(cursor=%p, regNum=%d)",
|
||||
|
||||
@ -120,10 +120,10 @@ typedef int (*unw_find_dynamic_unwind_sections)(
|
||||
extern int __unw_add_find_dynamic_unwind_sections(
|
||||
unw_find_dynamic_unwind_sections find_dynamic_unwind_sections);
|
||||
|
||||
// Deregister a dynacim unwind-info lookup callback.
|
||||
// Deregister a dynamic unwind-info lookup callback.
|
||||
//
|
||||
// Returns UNW_ESUCCESS for successful deregistrations. If the given callback
|
||||
// has already been registered then UNW_EINVAL will be returned.
|
||||
// is not present then UNW_EINVAL will be returned.
|
||||
extern int __unw_remove_find_dynamic_unwind_sections(
|
||||
unw_find_dynamic_unwind_sections find_dynamic_unwind_sections);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user