| /freebsd/contrib/kyua/utils/cmdline/ |
| H A D | options.cpp | 320 cmdline::int_option::validate(const std::string& raw_value) const in validate() 323 (void)text::to_type< int >(raw_value); in validate() 326 F("--%s") % long_name(), raw_value, "Not a valid integer"); in validate() 340 cmdline::int_option::convert(const std::string& raw_value) in convert() argument 343 return text::to_type< int >(raw_value); in convert() 346 "validated: %s") % raw_value % e.what()); in convert() 405 cmdline::list_option::convert(const std::string& raw_value) in convert() argument 408 return text::split(raw_value, ','); in convert() 411 "validated: %s") % raw_value % e.what()); in convert() 460 cmdline::path_option::validate(const std::string& raw_value) const in validate() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/LoongArch/ |
| H A D | ABISysV_loongarch.cpp | 292 uint64_t raw_value = data.GetMaxU64(&offset, num_bytes); in SetReturnValueObject() local 296 raw_value = llvm::SignExtend64<32>(raw_value); in SetReturnValueObject() 299 if (!reg_ctx.WriteRegisterFromUnsigned(reg_info, raw_value)) { in SetReturnValueObject() 311 raw_value >>= 32; in SetReturnValueObject() 313 raw_value = data.GetMaxU64(&offset, num_bytes - reg_size); in SetReturnValueObject() 317 if (!reg_ctx.WriteRegisterFromUnsigned(reg_info, raw_value)) in SetReturnValueObject() 325 static void SetInteger(Scalar &scalar, uint64_t raw_value, bool is_signed) { in SetInteger() argument 327 raw_value &= std::numeric_limits<T>::max(); in SetInteger() 329 scalar = static_cast<typename std::make_signed<T>::type>(raw_value); in SetInteger() 331 scalar = static_cast<T>(raw_value); in SetInteger() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/ARC/ |
| H A D | ABISysV_arc.cpp | 346 uint64_t raw_value = data.GetMaxU64(&offset, num_bytes); in SetReturnValueObject() local 350 if (!reg_ctx.WriteRegisterFromUnsigned(reg_info, raw_value)) { in SetReturnValueObject() 359 raw_value >>= 32; in SetReturnValueObject() 362 if (!reg_ctx.WriteRegisterFromUnsigned(reg_info, raw_value)) { in SetReturnValueObject() 376 static void SetInteger(Scalar &scalar, uint64_t raw_value, bool is_signed) { in SetInteger() argument 377 raw_value &= std::numeric_limits<T>::max(); in SetInteger() 379 scalar = static_cast<typename std::make_signed<T>::type>(raw_value); in SetInteger() 381 scalar = static_cast<T>(raw_value); in SetInteger() 384 static bool SetSizedInteger(Scalar &scalar, uint64_t raw_value, in SetSizedInteger() argument 391 SetInteger<uint64_t>(scalar, raw_value, is_signed); in SetSizedInteger() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/RISCV/ |
| H A D | ABISysV_riscv.cpp | 403 uint64_t raw_value = data.GetMaxU64(&offset, num_bytes); in SetReturnValueObject() local 407 if (!reg_ctx.WriteRegisterFromUnsigned(reg_info, raw_value)) { in SetReturnValueObject() 419 raw_value >>= 32; in SetReturnValueObject() 421 raw_value = data.GetMaxU64(&offset, num_bytes - reg_size); in SetReturnValueObject() 424 if (!reg_ctx.WriteRegisterFromUnsigned(reg_info, raw_value)) { in SetReturnValueObject() 438 static void SetInteger(Scalar &scalar, uint64_t raw_value, bool is_signed) { in SetInteger() argument 439 raw_value &= std::numeric_limits<T>::max(); in SetInteger() 441 scalar = static_cast<typename std::make_signed<T>::type>(raw_value); in SetInteger() 443 scalar = static_cast<T>(raw_value); in SetInteger() 446 static bool SetSizedInteger(Scalar &scalar, uint64_t raw_value, in SetSizedInteger() argument [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/X86/ |
| H A D | ABISysV_i386.cpp | 243 uint32_t raw_value = data.GetMaxU32(&offset, num_bytes); in SetReturnValueObject() local 245 reg_ctx->WriteRegisterFromUnsigned(eax_info, raw_value); in SetReturnValueObject() 273 uint32_t raw_value = data.GetMaxU32(&offset, num_bytes); in SetReturnValueObject() local 275 reg_ctx->WriteRegisterFromUnsigned(eax_info, raw_value); in SetReturnValueObject() 281 uint32_t raw_value = data.GetMaxU32(&offset, num_bytes); in SetReturnValueObject() local 283 reg_ctx->WriteRegisterFromUnsigned(eax_info, raw_value); in SetReturnValueObject() 404 uint64_t raw_value = in GetReturnValueObjectSimple() local 407 raw_value |= in GetReturnValueObjectSimple() 423 value.GetScalar() = (int64_t)(raw_value); in GetReturnValueObjectSimple() 425 value.GetScalar() = (uint64_t)(raw_value); in GetReturnValueObjectSimple() [all …]
|
| H A D | ABIMacOSX_i386.cpp | 222 uint32_t raw_value = data.GetMaxU32(&offset, num_bytes); in SetReturnValueObject() local 224 if (reg_ctx->WriteRegisterFromUnsigned(eax_info, raw_value)) in SetReturnValueObject() 227 uint32_t raw_value = data.GetMaxU32(&offset, 4); in SetReturnValueObject() local 229 if (reg_ctx->WriteRegisterFromUnsigned(eax_info, raw_value)) { in SetReturnValueObject() 232 uint32_t raw_value = data.GetMaxU32(&offset, num_bytes - offset); in SetReturnValueObject() local 234 if (reg_ctx->WriteRegisterFromUnsigned(edx_info, raw_value)) in SetReturnValueObject() 294 uint64_t raw_value; in GetReturnValueObjectImpl() local 295 raw_value = in GetReturnValueObjectImpl() 298 raw_value |= in GetReturnValueObjectImpl() 303 value.GetScalar() = (int64_t)raw_value; in GetReturnValueObjectImpl() [all …]
|
| H A D | ABIWindows_x86_64.cpp | 336 uint64_t raw_value = data.GetMaxU64(&offset, num_bytes); in SetReturnValueObject() local 338 if (reg_ctx->WriteRegisterFromUnsigned(reg_info, raw_value)) in SetReturnValueObject() 425 uint64_t raw_value = thread.GetRegisterContext()->ReadRegisterAsUnsigned( in GetReturnValueObjectSimple() local 434 value.GetScalar() = (int64_t)(raw_value); in GetReturnValueObjectSimple() 436 value.GetScalar() = (uint64_t)(raw_value); in GetReturnValueObjectSimple() 442 value.GetScalar() = (int32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectSimple() 444 value.GetScalar() = (uint32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectSimple() 450 value.GetScalar() = (int16_t)(raw_value & UINT16_MAX); in GetReturnValueObjectSimple() 452 value.GetScalar() = (uint16_t)(raw_value & UINT16_MAX); in GetReturnValueObjectSimple() 458 value.GetScalar() = (int8_t)(raw_value & UINT8_MAX); in GetReturnValueObjectSimple() [all …]
|
| H A D | ABISysV_x86_64.cpp | 331 uint64_t raw_value = data.GetMaxU64(&offset, num_bytes); in SetReturnValueObject() local 333 if (reg_ctx->WriteRegisterFromUnsigned(reg_info, raw_value)) in SetReturnValueObject() 419 uint64_t raw_value = thread.GetRegisterContext()->ReadRegisterAsUnsigned( in GetReturnValueObjectSimple() local 428 value.GetScalar() = (int64_t)(raw_value); in GetReturnValueObjectSimple() 430 value.GetScalar() = (uint64_t)(raw_value); in GetReturnValueObjectSimple() 436 value.GetScalar() = (int32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectSimple() 438 value.GetScalar() = (uint32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectSimple() 444 value.GetScalar() = (int16_t)(raw_value & UINT16_MAX); in GetReturnValueObjectSimple() 446 value.GetScalar() = (uint16_t)(raw_value & UINT16_MAX); in GetReturnValueObjectSimple() 452 value.GetScalar() = (int8_t)(raw_value & UINT8_MAX); in GetReturnValueObjectSimple() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/Mips/ |
| H A D | ABISysV_mips.cpp | 733 uint32_t raw_value = data.GetMaxU32(&offset, num_bytes); in SetReturnValueObject() local 735 if (reg_ctx->WriteRegisterFromUnsigned(r2_info, raw_value)) in SetReturnValueObject() 738 uint32_t raw_value = data.GetMaxU32(&offset, 4); in SetReturnValueObject() local 740 if (reg_ctx->WriteRegisterFromUnsigned(r2_info, raw_value)) { in SetReturnValueObject() 742 uint32_t raw_value = data.GetMaxU32(&offset, num_bytes - offset); in SetReturnValueObject() local 744 if (reg_ctx->WriteRegisterFromUnsigned(r3_info, raw_value)) in SetReturnValueObject() 814 uint64_t raw_value; in GetReturnValueObjectImpl() local 815 raw_value = reg_ctx->ReadRegisterAsUnsigned(r2_reg_info, 0) & UINT32_MAX; in GetReturnValueObjectImpl() 816 raw_value |= ((uint64_t)(reg_ctx->ReadRegisterAsUnsigned(r3_reg_info, 0) & in GetReturnValueObjectImpl() 820 value.GetScalar() = (int64_t)raw_value; in GetReturnValueObjectImpl() [all …]
|
| H A D | ABISysV_mips64.cpp | 696 uint64_t raw_value = data.GetMaxU64(&offset, num_bytes); in SetReturnValueObject() local 698 if (!reg_ctx->WriteRegisterFromUnsigned(r2_info, raw_value)) in SetReturnValueObject() 701 uint64_t raw_value = data.GetMaxU64(&offset, 8); in SetReturnValueObject() local 702 if (reg_ctx->WriteRegisterFromUnsigned(r2_info, raw_value)) { in SetReturnValueObject() 705 raw_value = data.GetMaxU64(&offset, num_bytes - offset); in SetReturnValueObject() 707 if (!reg_ctx->WriteRegisterFromUnsigned(r3_info, raw_value)) in SetReturnValueObject() 773 uint64_t raw_value = reg_ctx->ReadRegisterAsUnsigned(r2_info, 0); in GetReturnValueObjectImpl() local 782 value.GetScalar() = (int64_t)(raw_value); in GetReturnValueObjectImpl() 784 value.GetScalar() = (uint64_t)(raw_value); in GetReturnValueObjectImpl() 790 value.GetScalar() = (int32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectImpl() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/AArch64/ |
| H A D | ABIMacOSX_arm64.cpp | 274 uint64_t raw_value = data.GetMaxU64(&offset, byte_size); in SetReturnValueObject() local 276 if (!reg_ctx->WriteRegisterFromUnsigned(x0_info, raw_value)) in SetReturnValueObject() 279 uint64_t raw_value = data.GetMaxU64(&offset, 8); in SetReturnValueObject() local 281 if (reg_ctx->WriteRegisterFromUnsigned(x0_info, raw_value)) { in SetReturnValueObject() 284 raw_value = data.GetMaxU64(&offset, byte_size - offset); in SetReturnValueObject() 286 if (!reg_ctx->WriteRegisterFromUnsigned(x1_info, raw_value)) in SetReturnValueObject() 609 uint64_t raw_value = in GetReturnValueObjectImpl() local 655 value.GetScalar() = (int64_t)(raw_value); in GetReturnValueObjectImpl() 657 value.GetScalar() = (uint64_t)(raw_value); in GetReturnValueObjectImpl() 663 value.GetScalar() = (int32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectImpl() [all …]
|
| H A D | ABISysV_arm64.cpp | 316 uint64_t raw_value = data.GetMaxU64(&offset, byte_size); in SetReturnValueObject() local 318 if (!reg_ctx->WriteRegisterFromUnsigned(x0_info, raw_value)) in SetReturnValueObject() 321 uint64_t raw_value = data.GetMaxU64(&offset, 8); in SetReturnValueObject() local 323 if (reg_ctx->WriteRegisterFromUnsigned(x0_info, raw_value)) { in SetReturnValueObject() 326 raw_value = data.GetMaxU64(&offset, byte_size - offset); in SetReturnValueObject() 328 if (!reg_ctx->WriteRegisterFromUnsigned(x1_info, raw_value)) in SetReturnValueObject() 649 uint64_t raw_value = in GetReturnValueObjectImpl() local 696 value.GetScalar() = (int64_t)(raw_value); in GetReturnValueObjectImpl() 698 value.GetScalar() = (uint64_t)(raw_value); in GetReturnValueObjectImpl() 704 value.GetScalar() = (int32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectImpl() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/ARM/ |
| H A D | ABISysV_arm.cpp | 1577 uint64_t raw_value; in GetReturnValueObjectImpl() local 1578 raw_value = reg_ctx->ReadRegisterAsUnsigned(r0_reg_info, 0) & UINT32_MAX; in GetReturnValueObjectImpl() 1579 raw_value |= ((uint64_t)(reg_ctx->ReadRegisterAsUnsigned(r1_reg_info, 0) & in GetReturnValueObjectImpl() 1583 value.GetScalar() = (int64_t)raw_value; in GetReturnValueObjectImpl() 1585 value.GetScalar() = (uint64_t)raw_value; in GetReturnValueObjectImpl() 1652 uint64_t raw_value; in GetReturnValueObjectImpl() local 1655 raw_value = in GetReturnValueObjectImpl() 1657 raw_value |= in GetReturnValueObjectImpl() 1661 value.GetScalar() = *reinterpret_cast<double *>(&raw_value); in GetReturnValueObjectImpl() 1676 uint32_t raw_value; in GetReturnValueObjectImpl() local [all …]
|
| H A D | ABIMacOSX_arm.cpp | 1629 uint64_t raw_value; in GetReturnValueObjectImpl() local 1630 raw_value = reg_ctx->ReadRegisterAsUnsigned(r0_reg_info, 0) & UINT32_MAX; in GetReturnValueObjectImpl() 1631 raw_value |= ((uint64_t)(reg_ctx->ReadRegisterAsUnsigned(r1_reg_info, 0) & in GetReturnValueObjectImpl() 1635 value.GetScalar() = (int64_t)raw_value; in GetReturnValueObjectImpl() 1637 value.GetScalar() = (uint64_t)raw_value; in GetReturnValueObjectImpl() 1719 uint32_t raw_value = data.GetMaxU32(&offset, num_bytes); in SetReturnValueObject() local 1721 if (reg_ctx->WriteRegisterFromUnsigned(r0_info, raw_value)) in SetReturnValueObject() 1724 uint32_t raw_value = data.GetMaxU32(&offset, 4); in SetReturnValueObject() local 1726 if (reg_ctx->WriteRegisterFromUnsigned(r0_info, raw_value)) { in SetReturnValueObject() 1728 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 D | ABISysV_s390x.cpp | 417 uint64_t raw_value = data.GetMaxU64(&offset, num_bytes); in SetReturnValueObject() local 419 if (reg_ctx->WriteRegisterFromUnsigned(reg_info, raw_value)) in SetReturnValueObject() 503 uint64_t raw_value = thread.GetRegisterContext()->ReadRegisterAsUnsigned( in GetReturnValueObjectSimple() local 512 value.GetScalar() = (int64_t)(raw_value); in GetReturnValueObjectSimple() 514 value.GetScalar() = (uint64_t)(raw_value); in GetReturnValueObjectSimple() 520 value.GetScalar() = (int32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectSimple() 522 value.GetScalar() = (uint32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectSimple() 528 value.GetScalar() = (int16_t)(raw_value & UINT16_MAX); in GetReturnValueObjectSimple() 530 value.GetScalar() = (uint16_t)(raw_value & UINT16_MAX); in GetReturnValueObjectSimple() 536 value.GetScalar() = (int8_t)(raw_value & UINT8_MAX); in GetReturnValueObjectSimple() [all …]
|
| /freebsd/contrib/kyua/engine/ |
| H A D | config.cpp | 187 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 D | ABISysV_ppc64.cpp | 333 uint64_t raw_value = data.GetMaxU64(&offset, num_bytes); in SetReturnValueObject() local 335 if (reg_ctx->WriteRegisterFromUnsigned(reg_info, raw_value)) in SetReturnValueObject() 589 uint64_t raw_value; in GetIntegerValue() local 591 if (!reg.GetRawData(raw_value)) in GetIntegerValue() 603 value_sp->GetScalar() = (int64_t)(raw_value); in GetIntegerValue() 605 value_sp->GetScalar() = (uint64_t)(raw_value); in GetIntegerValue() 610 value_sp->GetScalar() = (int32_t)(raw_value & UINT32_MAX); in GetIntegerValue() 612 value_sp->GetScalar() = (uint32_t)(raw_value & UINT32_MAX); in GetIntegerValue() 617 value_sp->GetScalar() = (int16_t)(raw_value & UINT16_MAX); in GetIntegerValue() 619 value_sp->GetScalar() = (uint16_t)(raw_value & UINT16_MAX); in GetIntegerValue() [all …]
|
| H A D | ABISysV_ppc.cpp | 448 uint64_t raw_value = data.GetMaxU64(&offset, num_bytes); in SetReturnValueObject() local 450 if (reg_ctx->WriteRegisterFromUnsigned(reg_info, raw_value)) in SetReturnValueObject() 531 uint64_t raw_value = thread.GetRegisterContext()->ReadRegisterAsUnsigned( in GetReturnValueObjectSimple() local 540 value.GetScalar() = (int64_t)(raw_value); in GetReturnValueObjectSimple() 542 value.GetScalar() = (uint64_t)(raw_value); in GetReturnValueObjectSimple() 548 value.GetScalar() = (int32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectSimple() 550 value.GetScalar() = (uint32_t)(raw_value & UINT32_MAX); in GetReturnValueObjectSimple() 556 value.GetScalar() = (int16_t)(raw_value & UINT16_MAX); in GetReturnValueObjectSimple() 558 value.GetScalar() = (uint16_t)(raw_value & UINT16_MAX); in GetReturnValueObjectSimple() 564 value.GetScalar() = (int8_t)(raw_value & UINT8_MAX); in GetReturnValueObjectSimple() [all …]
|
| /freebsd/contrib/kyua/utils/config/ |
| H A D | nodes.ipp | 233 /// \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 D | tree.cpp | 245 const std::string& raw_value) in set_string() argument 252 child.set_string(raw_value); in set_string()
|
| H A D | nodes.cpp | 586 config::strings_set_node::parse_one(const std::string& raw_value) const in parse_one() 588 return raw_value; in parse_one()
|
| H A D | tree_test.cpp | 110 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/llvm-project/lldb/source/ValueObject/ |
| H A D | DILParser.cpp | 364 int64_t raw_value; in ParseIntegerConstant() local 365 if (!spelling_ref.getAsInteger<int64_t>(0, raw_value)) { in ParseIntegerConstant() 367 return raw_value; in ParseIntegerConstant()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/PDB/ |
| H A D | PDBASTParser.cpp | 1157 uint64_t raw_value; in AddEnumValue() local 1160 raw_value = v.Value.Int8; in AddEnumValue() 1163 raw_value = v.Value.Int16; in AddEnumValue() 1166 raw_value = v.Value.Int32; in AddEnumValue() 1169 raw_value = v.Value.Int64; in AddEnumValue() 1172 raw_value = v.Value.UInt8; in AddEnumValue() 1175 raw_value = v.Value.UInt16; in AddEnumValue() 1178 raw_value = v.Value.UInt32; in AddEnumValue() 1181 raw_value = v.Value.UInt64; in AddEnumValue() 1190 enum_type, decl, name.c_str(), raw_value, byte_size * 8); in AddEnumValue()
|
| /freebsd/contrib/kyua/model/ |
| H A D | metadata.cpp | 120 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()
|