Home
last modified time | relevance | path

Searched refs:fail_value (Results 1 – 25 of 46) sorted by relevance

12

/freebsd/contrib/llvm-project/lldb/source/API/
H A DSBStructuredData.cpp189 uint64_t SBStructuredData::GetIntegerValue(uint64_t fail_value) const { in GetIntegerValue()
190 LLDB_INSTRUMENT_VA(this, fail_value); in GetIntegerValue()
192 return GetUnsignedIntegerValue(fail_value); in GetIntegerValue()
195 uint64_t SBStructuredData::GetUnsignedIntegerValue(uint64_t fail_value) const { in GetUnsignedIntegerValue()
196 LLDB_INSTRUMENT_VA(this, fail_value); in GetUnsignedIntegerValue()
198 return m_impl_up->GetIntegerValue(fail_value); in GetUnsignedIntegerValue()
201 int64_t SBStructuredData::GetSignedIntegerValue(int64_t fail_value) const { in GetSignedIntegerValue()
202 LLDB_INSTRUMENT_VA(this, fail_value); in GetSignedIntegerValue()
204 return m_impl_up->GetIntegerValue(fail_value); in GetSignedIntegerValue()
207 double SBStructuredData::GetFloatValue(double fail_value) const { in GetFloatValue()
[all …]
H A DSBValue.cpp868 int64_t SBValue::GetValueAsSigned(SBError &error, int64_t fail_value) { in GetValueAsSigned() argument
869 LLDB_INSTRUMENT_VA(this, error, fail_value); in GetValueAsSigned()
876 uint64_t ret_val = fail_value; in GetValueAsSigned()
877 ret_val = value_sp->GetValueAsSigned(fail_value, &success); in GetValueAsSigned()
885 return fail_value; in GetValueAsSigned()
888 uint64_t SBValue::GetValueAsUnsigned(SBError &error, uint64_t fail_value) { in GetValueAsUnsigned() argument
889 LLDB_INSTRUMENT_VA(this, error, fail_value); in GetValueAsUnsigned()
896 uint64_t ret_val = fail_value; in GetValueAsUnsigned()
897 ret_val = value_sp->GetValueAsUnsigned(fail_value, &success); in GetValueAsUnsigned()
905 return fail_value; in GetValueAsUnsigned()
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/
H A DStringExtractor.h58 char GetChar(char fail_value = '\0');
60 char PeekChar(char fail_value = '\0') {
64 return fail_value;
69 uint8_t GetHexU8(uint8_t fail_value = 0, bool set_eof_on_fail = true);
75 int32_t GetS32(int32_t fail_value, int base = 0);
77 uint32_t GetU32(uint32_t fail_value, int base = 0);
79 int64_t GetS64(int64_t fail_value, int base = 0);
81 uint64_t GetU64(uint64_t fail_value, int base = 0);
83 uint32_t GetHexMaxU32(bool little_endian, uint32_t fail_value);
85 uint64_t GetHexMaxU64(bool little_endian, uint64_t fail_value);
H A DScalar.h154 int SInt(int fail_value = 0) const;
156 unsigned char UChar(unsigned char fail_value = 0) const;
158 signed char SChar(signed char fail_value = 0) const;
160 unsigned short UShort(unsigned short fail_value = 0) const;
162 short SShort(short fail_value = 0) const;
164 unsigned int UInt(unsigned int fail_value = 0) const;
166 long SLong(long fail_value = 0) const;
168 unsigned long ULong(unsigned long fail_value = 0) const;
170 long long SLongLong(long long fail_value = 0) const;
172 unsigned long long ULongLong(unsigned long long fail_value = 0) const;
[all …]
H A DRegisterValue.h118 uint8_t GetAsUInt8(uint8_t fail_value = UINT8_MAX,
123 return m_scalar.UChar(fail_value);
127 return fail_value;
130 uint16_t GetAsUInt16(uint16_t fail_value = UINT16_MAX,
133 uint32_t GetAsUInt32(uint32_t fail_value = UINT32_MAX,
136 uint64_t GetAsUInt64(uint64_t fail_value = UINT64_MAX,
139 llvm::APInt GetAsUInt128(const llvm::APInt &fail_value,
142 float GetAsFloat(float fail_value = 0.0f, bool *success_ptr = nullptr) const;
144 double GetAsDouble(double fail_value = 0.0,
147 long double GetAsLongDouble(long double fail_value
[all...]
H A DStructuredData.h120 uint64_t GetUnsignedIntegerValue(uint64_t fail_value = 0) {
122 return ((integer != nullptr) ? integer->GetValue() : fail_value);
125 int64_t GetSignedIntegerValue(int64_t fail_value = 0) {
127 return ((integer != nullptr) ? integer->GetValue() : fail_value);
136 double GetFloatValue(double fail_value = 0.0) {
138 return ((f != nullptr) ? f->GetValue() : fail_value);
147 bool GetBooleanValue(bool fail_value = false) {
149 return ((b != nullptr) ? b->GetValue() : fail_value);
158 llvm::StringRef GetStringValue(const char *fail_value = nullptr) {
163 return fail_value;
[all...]
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/
H A DStructuredDataImpl.h131 uint64_t GetIntegerValue(uint64_t fail_value = 0) const {
132 return (m_data_sp ? m_data_sp->GetUnsignedIntegerValue(fail_value)
133 : fail_value);
136 int64_t GetIntegerValue(int64_t fail_value = 0) const {
137 return (m_data_sp ? m_data_sp->GetSignedIntegerValue(fail_value)
138 : fail_value);
141 double GetFloatValue(double fail_value = 0.0) const {
142 return (m_data_sp ? m_data_sp->GetFloatValue(fail_value) : fail_value);
145 bool GetBooleanValue(bool fail_value = false) const {
146 return (m_data_sp ? m_data_sp->GetBooleanValue(fail_value) : fail_value);
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DStringExtractor.cpp43 char StringExtractor::GetChar(char fail_value) { in GetChar() argument
50 return fail_value; in GetChar()
73 // or return fail_value on failure
74 uint8_t StringExtractor::GetHexU8(uint8_t fail_value, bool set_eof_on_fail) { in GetHexU8() argument
75 // On success, fail_value will be overwritten with the next character in the in GetHexU8()
77 GetHexU8Ex(fail_value, set_eof_on_fail); in GetHexU8()
78 return fail_value; in GetHexU8()
93 uint32_t StringExtractor::GetU32(uint32_t fail_value, int base) { in GetU32() argument
105 return fail_value; in GetU32()
108 int32_t StringExtractor::GetS32(int32_t fail_value, in argument
123 GetU64(uint64_t fail_value,int base) GetU64() argument
138 GetS64(int64_t fail_value,int base) GetS64() argument
154 GetHexMaxU32(bool little_endian,uint32_t fail_value) GetHexMaxU32() argument
205 GetHexMaxU64(bool little_endian,uint64_t fail_value) GetHexMaxU64() argument
[all...]
H A DScalar.cpp286 template <typename T> T Scalar::GetAs(T fail_value) const { in GetAs()
300 return fail_value; in GetAs()
303 signed char Scalar::SChar(signed char fail_value) const { in SChar()
304 return GetAs<signed char>(fail_value); in SChar()
307 unsigned char Scalar::UChar(unsigned char fail_value) const { in UChar()
308 return GetAs<unsigned char>(fail_value); in UChar()
311 short Scalar::SShort(short fail_value) const { in SShort()
312 return GetAs<short>(fail_value); in SShort()
315 unsigned short Scalar::UShort(unsigned short fail_value) const { in UShort()
316 return GetAs<unsigned short>(fail_value); in UShort()
[all …]
H A DRegisterValue.cpp481 uint16_t RegisterValue::GetAsUInt16(uint16_t fail_value, in GetAsUInt16() argument
491 return m_scalar.UShort(fail_value); in GetAsUInt16()
504 return fail_value; in GetAsUInt16()
507 uint32_t RegisterValue::GetAsUInt32(uint32_t fail_value, in GetAsUInt32() argument
520 return m_scalar.UInt(fail_value); in GetAsUInt32()
534 return fail_value; in GetAsUInt32()
537 uint64_t RegisterValue::GetAsUInt64(uint64_t fail_value, in GetAsUInt64() argument
551 return m_scalar.ULongLong(fail_value); in GetAsUInt64()
569 return fail_value; in GetAsUInt64()
572 llvm::APInt RegisterValue::GetAsUInt128(const llvm::APInt &fail_value, in GetAsUInt128() argument
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFBaseDIE.cpp39 const char *fail_value) const { in GetAttributeValueAsString()
41 return m_die->GetAttributeValueAsString(GetCU(), attr, fail_value); in GetAttributeValueAsString()
43 return fail_value; in GetAttributeValueAsString()
47 uint64_t fail_value) const { in GetAttributeValueAsUnsigned()
49 return m_die->GetAttributeValueAsUnsigned(GetCU(), attr, fail_value); in GetAttributeValueAsUnsigned()
51 return fail_value; in GetAttributeValueAsUnsigned()
62 uint64_t fail_value) const { in GetAttributeValueAsAddress()
64 return m_die->GetAttributeValueAsAddress(GetCU(), attr, fail_value); in GetAttributeValueAsAddress()
66 return fail_value; in GetAttributeValueAsAddress()
H A DDWARFDebugInfoEntry.cpp414 const DWARFUnit *cu, const dw_attr_t attr, const char *fail_value, in GetAttributeValueAsString() argument
420 return fail_value; in GetAttributeValueAsString()
427 const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value, in GetAttributeValueAsUnsigned() argument
433 return fail_value; in GetAttributeValueAsUnsigned()
462 const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value, in GetAttributeValueAsAddress() argument
468 return fail_value; in GetAttributeValueAsAddress()
478 const DWARFUnit *cu, dw_addr_t lo_pc, uint64_t fail_value, in GetAttributeHighPC() argument
491 return fail_value; in GetAttributeHighPC()
502 uint64_t fail_value, bool check_specification_or_abstract_origin) const { in GetAttributeAddressRange() argument
503 lo_pc = GetAttributeValueAsAddress(cu, DW_AT_low_pc, fail_value, in GetAttributeAddressRange()
[all …]
H A DDWARFDebugInfoEntry.h70 const DWARFUnit *cu, const dw_attr_t attr, const char *fail_value,
74 const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value,
86 const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value,
90 GetAttributeHighPC(const DWARFUnit *cu, dw_addr_t lo_pc, uint64_t fail_value,
95 uint64_t fail_value,
H A DDWARFBaseDIE.h106 const char *fail_value) const;
109 uint64_t fail_value) const;
115 uint64_t fail_value) const;
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DNativeRegisterContext.cpp123 lldb::addr_t NativeRegisterContext::GetPC(lldb::addr_t fail_value) { in GetPC() argument
129 fail_value); in GetPC()
131 const uint64_t retval = ReadRegisterAsUnsigned(reg, fail_value); in GetPC()
139 NativeRegisterContext::GetPCfromBreakpointLocation(lldb::addr_t fail_value) { in GetPCfromBreakpointLocation() argument
140 return GetPC(fail_value); in GetPCfromBreakpointLocation()
149 lldb::addr_t NativeRegisterContext::GetSP(lldb::addr_t fail_value) { in GetSP() argument
152 return ReadRegisterAsUnsigned(reg, fail_value); in GetSP()
161 lldb::addr_t NativeRegisterContext::GetFP(lldb::addr_t fail_value) { in GetFP() argument
164 return ReadRegisterAsUnsigned(reg, fail_value); in GetFP()
173 lldb::addr_t NativeRegisterContext::GetReturnAddress(lldb::addr_t fail_value) { in GetReturnAddress() argument
[all …]
H A DXML.cpp136 const char *fail_value) const { in GetAttributeValue()
146 if (fail_value) in GetAttributeValue()
147 attr_value = fail_value; in GetAttributeValue()
150 if (fail_value) in GetAttributeValue()
151 attr_value = fail_value; in GetAttributeValue()
157 uint64_t fail_value, int base) const { in GetAttributeValueAsUnsigned() argument
158 value = fail_value; in GetAttributeValueAsUnsigned()
299 bool XMLNode::GetElementTextAsUnsigned(uint64_t &value, uint64_t fail_value, in GetElementTextAsUnsigned() argument
303 value = fail_value; in GetElementTextAsUnsigned()
307 bool XMLNode::GetElementTextAsFloat(double &value, double fail_value) const { in GetElementTextAsFloat()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Interpreter/
H A DOptionArgParser.cpp21 bool OptionArgParser::ToBoolean(llvm::StringRef ref, bool fail_value, in ToBoolean() argument
35 return fail_value; in ToBoolean()
52 char OptionArgParser::ToChar(llvm::StringRef s, char fail_value, in ToChar() argument
57 return fail_value; in ToChar()
66 int32_t fail_value, Status &error) { in ToOptionEnum() argument
70 return fail_value; in ToOptionEnum()
75 return fail_value; in ToOptionEnum()
92 return fail_value; in ToOptionEnum()
140 llvm::StringRef s, lldb::ScriptLanguage fail_value, bool *success_ptr) { in ToScriptLanguage() argument
155 return fail_value; in ToScriptLanguage()
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/Interpreter/
H A DOptionArgParser.h22 llvm::StringRef s, lldb::addr_t fail_value,
27 llvm::StringRef s, lldb::addr_t fail_value,
30 static bool ToBoolean(llvm::StringRef s, bool fail_value, bool *success_ptr);
35 static char ToChar(llvm::StringRef s, char fail_value, bool *success_ptr);
39 int32_t fail_value, Status &error);
42 lldb::ScriptLanguage fail_value,
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DRegisterContext.cpp95 uint64_t RegisterContext::GetPC(uint64_t fail_value) { in GetPC() argument
98 uint64_t pc = ReadRegisterAsUnsigned(reg, fail_value); in GetPC()
100 if (pc != fail_value) { in GetPC()
112 uint64_t RegisterContext::GetThreadPointer(uint64_t fail_value) { in SetPC()
115 return ReadRegisterAsUnsigned(reg, fail_value); in SetPC()
158 uint64_t RegisterContext::GetSP(uint64_t fail_value) { in SetSP()
161 return ReadRegisterAsUnsigned(reg, fail_value); in SetSP()
170 uint64_t RegisterContext::GetFP(uint64_t fail_value) { in SetFP()
173 return ReadRegisterAsUnsigned(reg, fail_value); in SetFP()
182 uint64_t RegisterContext::GetReturnAddress(uint64_t fail_value) { in GetFlags() argument
152 GetSP(uint64_t fail_value) GetSP() argument
164 GetFP(uint64_t fail_value) GetFP() argument
176 GetReturnAddress(uint64_t fail_value) GetReturnAddress() argument
189 ReadRegisterAsUnsigned(uint32_t reg,uint64_t fail_value) ReadRegisterAsUnsigned() argument
196 ReadRegisterAsUnsigned(const RegisterInfo * reg_info,uint64_t fail_value) ReadRegisterAsUnsigned() argument
[all...]
/freebsd/contrib/llvm-project/lldb/include/lldb/Host/common/
H A DNativeRegisterContext.h131 lldb::addr_t GetPC(lldb::addr_t fail_value = LLDB_INVALID_ADDRESS);
134 GetPCfromBreakpointLocation(lldb::addr_t fail_value = LLDB_INVALID_ADDRESS);
138 lldb::addr_t GetSP(lldb::addr_t fail_value = LLDB_INVALID_ADDRESS);
142 lldb::addr_t GetFP(lldb::addr_t fail_value = LLDB_INVALID_ADDRESS);
148 lldb::addr_t GetReturnAddress(lldb::addr_t fail_value = LLDB_INVALID_ADDRESS);
150 lldb::addr_t GetFlags(lldb::addr_t fail_value = 0);
152 lldb::addr_t ReadRegisterAsUnsigned(uint32_t reg, lldb::addr_t fail_value);
155 lldb::addr_t fail_value);
/freebsd/contrib/llvm-project/lldb/include/lldb/Target/
H A DRegisterContext.h151 uint64_t GetPC(uint64_t fail_value = LLDB_INVALID_ADDRESS);
155 uint64_t GetThreadPointer(uint64_t fail_value = LLDB_INVALID_ADDRESS);
186 uint64_t GetSP(uint64_t fail_value = LLDB_INVALID_ADDRESS);
190 uint64_t GetFP(uint64_t fail_value = LLDB_INVALID_ADDRESS);
196 uint64_t GetReturnAddress(uint64_t fail_value = LLDB_INVALID_ADDRESS);
198 uint64_t GetFlags(uint64_t fail_value = 0);
200 uint64_t ReadRegisterAsUnsigned(uint32_t reg, uint64_t fail_value);
203 uint64_t fail_value);
H A DProcessStructReader.h83 RetType GetField(llvm::StringRef name, RetType fail_value = RetType()) {
86 return fail_value;
89 return fail_value;
92 return fail_value;
/freebsd/contrib/llvm-project/lldb/include/lldb/API/
H A DSBStructuredData.h75 uint64_t GetUnsignedIntegerValue(uint64_t fail_value = 0) const;
77 int64_t GetSignedIntegerValue(int64_t fail_value = 0) const;
82 uint64_t GetIntegerValue(uint64_t fail_value = 0) const;
86 double GetFloatValue(double fail_value = 0.0) const;
89 bool GetBooleanValue(bool fail_value = false) const;
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/
H A Dzdb_block_size_histogram.ksh212 let fail_value=0
239 if [ ${dp} -gt ${fail_value} ]; then
240 fail_value=${dp}
247 if [ ${fail_value} -gt 0 ]; then
254 "hctp: Max variance of ${max_variance}% exceeded, saw ${fail_value}%"
/freebsd/contrib/llvm-project/lldb/include/lldb/Host/
H A DXML.h66 bool GetElementTextAsUnsigned(uint64_t &value, uint64_t fail_value = 0,
69 bool GetElementTextAsFloat(double &value, double fail_value = 0.0) const;
80 const char *fail_value = nullptr) const;
83 uint64_t fail_value = 0, int base = 0) const;

12