Home
last modified time | relevance | path

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

/freebsd/contrib/kyua/utils/cmdline/
H A Doptions.cpp307 cmdline::int_option::validate(const std::string& raw_value) const in validate()
310 (void)text::to_type< int >(raw_value); in validate()
313 F("--%s") % long_name(), raw_value, "Not a valid integer"); in validate()
327 cmdline::int_option::convert(const std::string& raw_value) in convert() argument
330 return text::to_type< int >(raw_value); in convert()
333 "validated: %s") % raw_value % e.what()); in convert()
392 cmdline::list_option::convert(const std::string& raw_value) in convert() argument
395 return text::split(raw_value, ','); in convert()
398 "validated: %s") % raw_value % e.what()); in convert()
447 cmdline::path_option::validate(const std::string& raw_value) const in validate()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/ARC/
H A DABISysV_arc.cpp345 uint64_t raw_value = data.GetMaxU64(&offset, num_bytes); in SetReturnValueObject() local
349 if (!reg_ctx.WriteRegisterFromUnsigned(reg_info, raw_value)) { in SetReturnValueObject()
358 raw_value >>= 32; in SetReturnValueObject()
361 if (!reg_ctx.WriteRegisterFromUnsigned(reg_info, raw_value)) { in SetReturnValueObject()
375 static void SetInteger(Scalar &scalar, uint64_t raw_value, bool is_signed) { in SetInteger() argument
376 raw_value &= std::numeric_limits<T>::max(); in SetInteger()
378 scalar = static_cast<typename std::make_signed<T>::type>(raw_value); in SetInteger()
380 scalar = static_cast<T>(raw_value); in SetInteger()
383 static bool SetSizedInteger(Scalar &scalar, uint64_t raw_value, in SetSizedInteger() argument
390 SetInteger<uint64_t>(scalar, raw_value, is_signed); in SetSizedInteger()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/RISCV/
H A DABISysV_riscv.cpp325 uint64_t raw_value = data.GetMaxU64(&offset, num_bytes); in SetReturnValueObject() local
329 if (!reg_ctx.WriteRegisterFromUnsigned(reg_info, raw_value)) { in SetReturnValueObject()
341 raw_value >>= 32; in SetReturnValueObject()
343 raw_value = data.GetMaxU64(&offset, num_bytes - reg_size); in SetReturnValueObject()
346 if (!reg_ctx.WriteRegisterFromUnsigned(reg_info, raw_value)) { in SetReturnValueObject()
360 static void SetInteger(Scalar &scalar, uint64_t raw_value, bool is_signed) { in SetInteger() argument
361 raw_value &= std::numeric_limits<T>::max(); in SetInteger()
363 scalar = static_cast<typename std::make_signed<T>::type>(raw_value); in SetInteger()
365 scalar = static_cast<T>(raw_value); in SetInteger()
368 static bool SetSizedInteger(Scalar &scalar, uint64_t raw_value, in SetSizedInteger() argument
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/X86/
H A DABISysV_i386.cpp241 uint32_t raw_value = data.GetMaxU32(&offset, num_bytes); in SetReturnValueObject() local
243 reg_ctx->WriteRegisterFromUnsigned(eax_info, raw_value); in SetReturnValueObject()
271 uint32_t raw_value = data.GetMaxU32(&offset, num_bytes); in SetReturnValueObject() local
273 reg_ctx->WriteRegisterFromUnsigned(eax_info, raw_value); in SetReturnValueObject()
279 uint32_t raw_value = data.GetMaxU32(&offset, num_bytes); in SetReturnValueObject() local
281 reg_ctx->WriteRegisterFromUnsigned(eax_info, raw_value); in SetReturnValueObject()
399 uint64_t raw_value = in GetReturnValueObjectSimple() local
402 raw_value |= in GetReturnValueObjectSimple()
418 value.GetScalar() = (int64_t)(raw_value); in GetReturnValueObjectSimple()
420 value.GetScalar() = (uint64_t)(raw_value); in GetReturnValueObjectSimple()
[all …]
H A DABIMacOSX_i386.cpp221 uint32_t raw_value = data.GetMaxU32(&offset, num_bytes); in SetReturnValueObject() local
223 if (reg_ctx->WriteRegisterFromUnsigned(eax_info, raw_value)) in SetReturnValueObject()
226 uint32_t raw_value = data.GetMaxU32(&offset, 4); in SetReturnValueObject() local
228 if (reg_ctx->WriteRegisterFromUnsigned(eax_info, raw_value)) { in SetReturnValueObject()
231 uint32_t raw_value = data.GetMaxU32(&offset, num_bytes - offset); in SetReturnValueObject() local
233 if (reg_ctx->WriteRegisterFromUnsigned(edx_info, raw_value)) in SetReturnValueObject()
291 uint64_t raw_value; in GetReturnValueObjectImpl() local
292 raw_value = in GetReturnValueObjectImpl()
295 raw_value |= in GetReturnValueObjectImpl()
300 value.GetScalar() = (int64_t)raw_value; in GetReturnValueObjectImpl()
[all …]
H A DABIWindows_x86_64.cpp335 uint64_t raw_value = data.GetMaxU64(&offset, num_bytes); in SetReturnValueObject() local
337 if (reg_ctx->WriteRegisterFromUnsigned(reg_info, raw_value)) in SetReturnValueObject()
422 uint64_t raw_value = thread.GetRegisterContext()->ReadRegisterAsUnsigned( in GetReturnValueObjectSimple() local
431 value.GetScalar() = (int64_t)(raw_value); in GetReturnValueObjectSimple()
433 value.GetScalar() = (uint64_t)(raw_value); in GetReturnValueObjectSimple()
439 value.GetScalar() = (int32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectSimple()
441 value.GetScalar() = (uint32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectSimple()
447 value.GetScalar() = (int16_t)(raw_value & UINT16_MAX); in GetReturnValueObjectSimple()
449 value.GetScalar() = (uint16_t)(raw_value & UINT16_MAX); in GetReturnValueObjectSimple()
455 value.GetScalar() = (int8_t)(raw_value & UINT8_MAX); in GetReturnValueObjectSimple()
[all …]
H A DABISysV_x86_64.cpp328 uint64_t raw_value = data.GetMaxU64(&offset, num_bytes); in SetReturnValueObject() local
330 if (reg_ctx->WriteRegisterFromUnsigned(reg_info, raw_value)) in SetReturnValueObject()
414 uint64_t raw_value = thread.GetRegisterContext()->ReadRegisterAsUnsigned( in GetReturnValueObjectSimple() local
423 value.GetScalar() = (int64_t)(raw_value); in GetReturnValueObjectSimple()
425 value.GetScalar() = (uint64_t)(raw_value); in GetReturnValueObjectSimple()
431 value.GetScalar() = (int32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectSimple()
433 value.GetScalar() = (uint32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectSimple()
439 value.GetScalar() = (int16_t)(raw_value & UINT16_MAX); in GetReturnValueObjectSimple()
441 value.GetScalar() = (uint16_t)(raw_value & UINT16_MAX); in GetReturnValueObjectSimple()
447 value.GetScalar() = (int8_t)(raw_value & UINT8_MAX); in GetReturnValueObjectSimple()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/Mips/
H A DABISysV_mips64.cpp702 uint64_t raw_value = data.GetMaxU64(&offset, num_bytes); in SetReturnValueObject() local
704 if (!reg_ctx->WriteRegisterFromUnsigned(r2_info, raw_value)) in SetReturnValueObject()
707 uint64_t raw_value = data.GetMaxU64(&offset, 8); in SetReturnValueObject() local
708 if (reg_ctx->WriteRegisterFromUnsigned(r2_info, raw_value)) { in SetReturnValueObject()
711 raw_value = data.GetMaxU64(&offset, num_bytes - offset); in SetReturnValueObject()
713 if (!reg_ctx->WriteRegisterFromUnsigned(r3_info, raw_value)) in SetReturnValueObject()
776 uint64_t raw_value = reg_ctx->ReadRegisterAsUnsigned(r2_info, 0); in GetReturnValueObjectImpl() local
785 value.GetScalar() = (int64_t)(raw_value); in GetReturnValueObjectImpl()
787 value.GetScalar() = (uint64_t)(raw_value); in GetReturnValueObjectImpl()
793 value.GetScalar() = (int32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectImpl()
[all …]
H A DABISysV_mips.cpp739 uint32_t raw_value = data.GetMaxU32(&offset, num_bytes); in SetReturnValueObject() local
741 if (reg_ctx->WriteRegisterFromUnsigned(r2_info, raw_value)) in SetReturnValueObject()
744 uint32_t raw_value = data.GetMaxU32(&offset, 4); in SetReturnValueObject() local
746 if (reg_ctx->WriteRegisterFromUnsigned(r2_info, raw_value)) { in SetReturnValueObject()
748 uint32_t raw_value = data.GetMaxU32(&offset, num_bytes - offset); in SetReturnValueObject() local
750 if (reg_ctx->WriteRegisterFromUnsigned(r3_info, raw_value)) in SetReturnValueObject()
818 uint64_t raw_value; in GetReturnValueObjectImpl() local
819 raw_value = reg_ctx->ReadRegisterAsUnsigned(r2_reg_info, 0) & UINT32_MAX; in GetReturnValueObjectImpl()
820 raw_value |= ((uint64_t)(reg_ctx->ReadRegisterAsUnsigned(r3_reg_info, 0) & in GetReturnValueObjectImpl()
824 value.GetScalar() = (int64_t)raw_value; in GetReturnValueObjectImpl()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/AArch64/
H A DABIMacOSX_arm64.cpp276 uint64_t raw_value = data.GetMaxU64(&offset, byte_size); in SetReturnValueObject() local
278 if (!reg_ctx->WriteRegisterFromUnsigned(x0_info, raw_value)) in SetReturnValueObject()
281 uint64_t raw_value = data.GetMaxU64(&offset, 8); in SetReturnValueObject() local
283 if (reg_ctx->WriteRegisterFromUnsigned(x0_info, raw_value)) { in SetReturnValueObject()
286 raw_value = data.GetMaxU64(&offset, byte_size - offset); in SetReturnValueObject()
288 if (!reg_ctx->WriteRegisterFromUnsigned(x1_info, raw_value)) in SetReturnValueObject()
657 uint64_t raw_value = in GetReturnValueObjectImpl() local
703 value.GetScalar() = (int64_t)(raw_value); in GetReturnValueObjectImpl()
705 value.GetScalar() = (uint64_t)(raw_value); in GetReturnValueObjectImpl()
711 value.GetScalar() = (int32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectImpl()
[all …]
H A DABISysV_arm64.cpp249 uint64_t raw_value = data.GetMaxU64(&offset, byte_size); in SetReturnValueObject() local
251 if (!reg_ctx->WriteRegisterFromUnsigned(x0_info, raw_value)) in SetReturnValueObject()
254 uint64_t raw_value = data.GetMaxU64(&offset, 8); in SetReturnValueObject() local
256 if (reg_ctx->WriteRegisterFromUnsigned(x0_info, raw_value)) { in SetReturnValueObject()
259 raw_value = data.GetMaxU64(&offset, byte_size - offset); in SetReturnValueObject()
261 if (!reg_ctx->WriteRegisterFromUnsigned(x1_info, raw_value)) in SetReturnValueObject()
628 uint64_t raw_value = in GetReturnValueObjectImpl() local
675 value.GetScalar() = (int64_t)(raw_value); in GetReturnValueObjectImpl()
677 value.GetScalar() = (uint64_t)(raw_value); in GetReturnValueObjectImpl()
683 value.GetScalar() = (int32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectImpl()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/ARM/
H A DABISysV_arm.cpp1581 uint64_t raw_value; in GetReturnValueObjectImpl() local
1582 raw_value = reg_ctx->ReadRegisterAsUnsigned(r0_reg_info, 0) & UINT32_MAX; in GetReturnValueObjectImpl()
1583 raw_value |= ((uint64_t)(reg_ctx->ReadRegisterAsUnsigned(r1_reg_info, 0) & in GetReturnValueObjectImpl()
1587 value.GetScalar() = (int64_t)raw_value; in GetReturnValueObjectImpl()
1589 value.GetScalar() = (uint64_t)raw_value; in GetReturnValueObjectImpl()
1656 uint64_t raw_value; in GetReturnValueObjectImpl() local
1659 raw_value = in GetReturnValueObjectImpl()
1661 raw_value |= in GetReturnValueObjectImpl()
1665 value.GetScalar() = *reinterpret_cast<double *>(&raw_value); in GetReturnValueObjectImpl()
1680 uint32_t raw_value; in GetReturnValueObjectImpl() local
[all …]
H A DABIMacOSX_arm.cpp1633 uint64_t raw_value; in GetReturnValueObjectImpl() local
1634 raw_value = reg_ctx->ReadRegisterAsUnsigned(r0_reg_info, 0) & UINT32_MAX; in GetReturnValueObjectImpl()
1635 raw_value |= ((uint64_t)(reg_ctx->ReadRegisterAsUnsigned(r1_reg_info, 0) & in GetReturnValueObjectImpl()
1639 value.GetScalar() = (int64_t)raw_value; in GetReturnValueObjectImpl()
1641 value.GetScalar() = (uint64_t)raw_value; in GetReturnValueObjectImpl()
1723 uint32_t raw_value = data.GetMaxU32(&offset, num_bytes); in SetReturnValueObject() local
1725 if (reg_ctx->WriteRegisterFromUnsigned(r0_info, raw_value)) in SetReturnValueObject()
1728 uint32_t raw_value = data.GetMaxU32(&offset, 4); in SetReturnValueObject() local
1730 if (reg_ctx->WriteRegisterFromUnsigned(r0_info, raw_value)) { in SetReturnValueObject()
1732 uint32_t raw_value = data.GetMaxU32(&offset, num_bytes - offset); in SetReturnValueObject() local
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/SystemZ/
H A DABISysV_s390x.cpp416 uint64_t raw_value = data.GetMaxU64(&offset, num_bytes); in SetReturnValueObject() local
418 if (reg_ctx->WriteRegisterFromUnsigned(reg_info, raw_value)) in SetReturnValueObject()
500 uint64_t raw_value = thread.GetRegisterContext()->ReadRegisterAsUnsigned( in GetReturnValueObjectSimple() local
509 value.GetScalar() = (int64_t)(raw_value); in GetReturnValueObjectSimple()
511 value.GetScalar() = (uint64_t)(raw_value); in GetReturnValueObjectSimple()
517 value.GetScalar() = (int32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectSimple()
519 value.GetScalar() = (uint32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectSimple()
525 value.GetScalar() = (int16_t)(raw_value & UINT16_MAX); in GetReturnValueObjectSimple()
527 value.GetScalar() = (uint16_t)(raw_value & UINT16_MAX); in GetReturnValueObjectSimple()
533 value.GetScalar() = (int8_t)(raw_value & UINT8_MAX); in GetReturnValueObjectSimple()
[all …]
/freebsd/contrib/kyua/engine/
H A Dconfig.cpp187 engine::user_node::set_string(const std::string& raw_value) in set_string() argument
191 passwd::find_user_by_name(raw_value)); in set_string()
195 uid = text::to_type< int >(raw_value); in set_string()
197 throw error(F("Cannot find user with name '%s'") % raw_value); in set_string()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/PowerPC/
H A DABISysV_ppc64.cpp332 uint64_t raw_value = data.GetMaxU64(&offset, num_bytes); in SetReturnValueObject() local
334 if (reg_ctx->WriteRegisterFromUnsigned(reg_info, raw_value)) in SetReturnValueObject()
585 uint64_t raw_value; in GetIntegerValue() local
587 if (!reg.GetRawData(raw_value)) in GetIntegerValue()
599 value_sp->GetScalar() = (int64_t)(raw_value); in GetIntegerValue()
601 value_sp->GetScalar() = (uint64_t)(raw_value); in GetIntegerValue()
606 value_sp->GetScalar() = (int32_t)(raw_value & UINT32_MAX); in GetIntegerValue()
608 value_sp->GetScalar() = (uint32_t)(raw_value & UINT32_MAX); in GetIntegerValue()
613 value_sp->GetScalar() = (int16_t)(raw_value & UINT16_MAX); in GetIntegerValue()
615 value_sp->GetScalar() = (uint16_t)(raw_value & UINT16_MAX); in GetIntegerValue()
[all …]
H A DABISysV_ppc.cpp453 uint64_t raw_value = data.GetMaxU64(&offset, num_bytes); in SetReturnValueObject() local
455 if (reg_ctx->WriteRegisterFromUnsigned(reg_info, raw_value)) in SetReturnValueObject()
534 uint64_t raw_value = thread.GetRegisterContext()->ReadRegisterAsUnsigned( in GetReturnValueObjectSimple() local
543 value.GetScalar() = (int64_t)(raw_value); in GetReturnValueObjectSimple()
545 value.GetScalar() = (uint64_t)(raw_value); in GetReturnValueObjectSimple()
551 value.GetScalar() = (int32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectSimple()
553 value.GetScalar() = (uint32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectSimple()
559 value.GetScalar() = (int16_t)(raw_value & UINT16_MAX); in GetReturnValueObjectSimple()
561 value.GetScalar() = (uint16_t)(raw_value & UINT16_MAX); in GetReturnValueObjectSimple()
567 value.GetScalar() = (int8_t)(raw_value & UINT8_MAX); in GetReturnValueObjectSimple()
[all …]
/freebsd/contrib/kyua/utils/config/
H A Dnodes.ipp233 /// \param raw_value The value to set the node to.
238 config::native_leaf_node< ValueType >::set_string(const std::string& raw_value)
242 raw_value));
245 "the node's type") % raw_value);
335 /// \param raw_value The value to set the node to.
340 config::base_set_node< ValueType >::set_string(const std::string& raw_value)
344 const std::vector< std::string > words = text::split(raw_value, ' ');
H A Dtree.cpp245 const std::string& raw_value) in set_string() argument
252 child.set_string(raw_value); in set_string()
H A Dnodes.cpp586 config::strings_set_node::parse_one(const std::string& raw_value) const in parse_one()
588 return raw_value; in parse_one()
H A Dtree_test.cpp110 set_string(const std::string& raw_value) in set_string() argument
112 int_wrapper new_value(text::to_type< int >(raw_value)); in set_string()
/freebsd/contrib/kyua/model/
H A Dmetadata.cpp120 set_string(const std::string& raw_value) in set_string() argument
124 seconds = text::to_type< unsigned int >(raw_value); in set_string()
126 throw config::value_error(F("Invalid time delta %s") % raw_value); in set_string()
213 parse_one(const std::string& raw_value) const in parse_one()
216 return fs::path(raw_value); in parse_one()
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/PDB/
H A DPDBASTParser.cpp1158 int64_t raw_value; in AddEnumValue() local
1161 raw_value = v.Value.Int8; in AddEnumValue()
1164 raw_value = v.Value.Int16; in AddEnumValue()
1167 raw_value = v.Value.Int32; in AddEnumValue()
1170 raw_value = v.Value.Int64; in AddEnumValue()
1173 raw_value = v.Value.UInt8; in AddEnumValue()
1176 raw_value = v.Value.UInt16; in AddEnumValue()
1179 raw_value = v.Value.UInt32; in AddEnumValue()
1182 raw_value = v.Value.UInt64; in AddEnumValue()
1191 enum_type, decl, name.c_str(), raw_value, byte_size * 8); in AddEnumValue()
/freebsd/sys/netpfil/ipfw/
H A Dip_fw2.c1282 cache.raw_value = f->cache.raw_value; in jump()
1290 f->cache.raw_value = cache.raw_value; in jump()
H A Dip_fw_private.h277 uint64_t raw_value; member