/llvm-project/clang/test/Parser/ |
H A D | ms-square-bracket-attributes.mm | 12 [uuid( "000000A0-0000-0000-C000-000000000049" )] struct struct_with_uuid; 14 // Optionally, the uuid can be surrounded by one set of braces. 15 [uuid( 21 [uuid(u8"000000A0-0000-0000-C000-000000000049")] struct struct_with_uuid_u8; 23 [uuid(L"000000A0-0000-0000-C000-000000000049")] struct struct_with_uuid_L; 26 // allow it for __declspec(uuid()) (u8 literals etc are not allowed there 30 [uuid(R"(000000A0-0000-0000-C000-000000000049)")] struct struct_with_uuid_raw; 32 // Likewise, cl supports UCNs in declspec uuid, but not in []-style uuid. 34 [uuid("000000A0-0000\u002D0000-C000-000000000049")] struct struct_with_uuid_ucn; 38 [uuid("000000A0-00" "00-0000-C000-000000000049")] struct struct_with_uuid_split; [all …]
|
H A D | MicrosoftExtensions.cpp | 47 struct __declspec(uuid(L"00000000-0000-0000-1234-000000000047")) uuid_attr_bad1 { };// expected-war… 48 struct __declspec(uuid(3)) uuid_attr_bad2 { };// expected-error {{expected string literal as argume… 49 struct __declspec(uuid("0000000-0000-0000-1234-0000500000047")) uuid_attr_bad3 { };// expected-erro… 50 struct __declspec(uuid("0000000-0000-0000-Z234-000000000047")) uuid_attr_bad4 { };// expected-error… 51 struct __declspec(uuid("000000000000-0000-1234-000000000047")) uuid_attr_bad5 { };// expected-error… 52 [uuid("000000000000-0000-1234-000000000047")] struct uuid_attr_bad6 { };// expected-error {{uuid at… 54 __declspec(uuid("000000A0-0000-0000-C000-000000000046")) int i; // expected-warning {{'uuid' attrib… 56 struct __declspec(uuid("000000A0-0000-0000-C000-000000000046")) 64 // Can't apply a UUID to a using declaration. 65 …[uuid("000000A0-0000-0000-C000-00000000004A")] using base::a; // expected-error {{expected member … [all …]
|
/llvm-project/clang/test/SemaCXX/ |
H A D | ms-uuid.cpp | 14 // cl.exe's behavior with merging uuid attributes is a bit erratic: 15 // * In []-style attributes, a single [] list must not list a duplicate uuid 16 // (even if it's the same uuid), and only a single declaration of a class 17 // must have a uuid else the compiler errors out (even if two declarations of 18 // a class have the same uuid). 19 // * For __declspec(uuid(...)), it's ok if several declarations of a class have 20 // an uuid, as long as it's the same uuid each time. If uuids on declarations 22 // * If there are several __declspec(uuid(...))s on one declaration, the 23 // compiler only warns about this and uses the last uuid. It even warns if 34 class __declspec(uuid("000000A0-0000-0000-C000-000000000049")) C1; [all …]
|
/llvm-project/lldb/unittests/Utility/ |
H A D | UUIDTest.cpp | 11 #include "lldb/Utility/UUID.h" 16 UUID empty; in TEST() 17 UUID a16 = UUID("1234567890123456", 16); in TEST() 18 UUID b16 = UUID("1234567890123457", 16); in TEST() 19 UUID a20 = UUID("12345678901234567890", 20); in TEST() 20 UUID b20 = UUID("12345678900987654321", 20); in TEST() 38 UUID empty; in TEST() 40 UUID a16 = UUID(zeroes.data(), 16); in TEST() 41 UUID a20 = UUID(zeroes.data(), 20); in TEST() 42 UUID from_str; in TEST() [all …]
|
/llvm-project/lldb/include/lldb/Utility/ |
H A D | UUID.h | 1 //===-- UUID.h --------------------------------------------------*- C++ -*-===// 23 class UUID { 24 // Represents UUID's of various sizes. In all cases, a uuid of all zeros is 25 // treated as an "Invalid UUID" marker, and the UUID created from such data 28 UUID() = default; 30 /// Creates a uuid from the data pointed to by the bytes argument. 31 UUID(llvm::ArrayRef<uint8_t> bytes) : m_bytes(bytes) { in UUID() function 45 } Uuid; member 54 UUID(const void *bytes, uint32_t num_bytes) { UUID() function [all...] |
/llvm-project/lldb/source/Utility/ |
H A D | UUID.cpp | 1 //===-- UUID.cpp ----------------------------------------------------------===// 9 #include "lldb/Utility/UUID.h" 21 // Whether to put a separator after count uuid bytes. 22 // For the first 16 bytes we follow the traditional UUID format. After that, we 38 UUID::UUID(UUID::CvRecordPdb70 debug_info) { in UUID() function in UUID 39 llvm::sys::swapByteOrder(debug_info.Uuid.Data1); in UUID() 40 llvm::sys::swapByteOrder(debug_info.Uuid.Data2); in UUID() 41 llvm::sys::swapByteOrder(debug_info.Uuid in UUID() [all...] |
/llvm-project/lldb/test/API/functionalities/postmortem/minidump-new/ |
H A D | TestMiniDumpUUID.py | 38 but contains a PDB70 value whose age is zero and whose UUID values are 41 ensure that the UUID is not valid for each module and that we have 52 and contains a PDB70 value whose age is zero and whose UUID values are 53 valid. Ensure we decode the UUID and don't include the age field in the UUID. 64 and contains a PDB70 value whose age is zero and whose UUID values are 65 valid. Ensure we decode the UUID and don't include the age field in the UUID. 79 and contains a PDB70 value whose age is valid and whose UUID values are 80 valid. Ensure we decode the UUID and include the age field in the UUID. 134 the same UUID. 152 module whose signature is set to PDB70 where the UUID only contains the [all …]
|
/llvm-project/llvm/unittests/IR/ |
H A D | DebugTypeODRUniquingTest.cpp | 28 MDString &UUID = *MDString::get(Context, "string"); in TEST() local 32 Context, UUID, dwarf::DW_TAG_class_type, nullptr, nullptr, 0, nullptr, in TEST() 38 EXPECT_FALSE(DICompositeType::getODRTypeIfExists(Context, UUID)); in TEST() 42 Context, UUID, dwarf::DW_TAG_class_type, nullptr, nullptr, 0, nullptr, in TEST() 45 EXPECT_EQ(UUID.getString(), CT.getIdentifier()); in TEST() 48 EXPECT_EQ(&CT, DICompositeType::getODRTypeIfExists(Context, UUID)); in TEST() 50 Context, UUID, dwarf::DW_TAG_class_type, nullptr, nullptr, in TEST() 56 Context, UUID, dwarf::DW_TAG_class_type, in TEST() 63 EXPECT_FALSE(DICompositeType::getODRTypeIfExists(Context, UUID)); in TEST() 67 EXPECT_FALSE(DICompositeType::getODRTypeIfExists(Context, UUID)); in TEST() 76 MDString &UUID = *MDString::get(Context, "Type"); TEST() local 124 MDString &UUID = *MDString::get(Context, "UUID"); TEST() local [all...] |
/llvm-project/lldb/test/API/macosx/unregistered-macho/ |
H A D | main.c | 5 #include <uuid/uuid.h> 41 struct uuid_command uuid; in main() local 42 uuid.cmd = LC_UUID; in main() 43 uuid.cmdsize = sizeof(uuid); in main() 44 uuid_clear(uuid.uuid); in main() 45 uuid_parse("1b4e28ba-2fa1-11d2-883f-b9a761bde3fb", uuid.uuid); in main() 47 memcpy(p, &uuid, sizeof(uuid)); in main() 48 p += sizeof(uuid); in main()
|
/llvm-project/lldb/test/API/macosx/add-dsym/ |
H A D | TestAddDsymDownload.py | 9 dwarfdump_uuid_regex = re.compile("UUID: ([-0-9a-fA-F]+) \(([^\(]+)\) .*") 13 ('/usr/bin/dwarfdump --uuid "%s"' % self.exe), shell=True 24 "# the last argument is the uuid", 34 'if [ "$1" != "%s" ]' % (self.uuid), 40 " uuid=%s" % self.uuid, 43 'echo "<dict><key>$uuid</key><dict>"', 66 self.dsym_for_uuid = self.getBuildArtifact("dsym-for-uuid.sh") 72 self.uuid = self.get_uuid() 73 self.assertNotEqual(self.uuid, None, "Could not get uuid for a.out") 108 self.do_test("add-dsym --uuid {}".format(self.uuid))
|
/llvm-project/lldb/source/Plugins/SymbolLocator/DebugSymbols/ |
H A D | SymbolLocatorDebugSymbols.cpp | 31 #include "lldb/Utility/UUID.h" 56 CFUUIDRef uuid, CFURLRef exec_url) = nullptr; 95 const UUID *uuid = module_spec.GetUUIDPtr(); in LocateExecutableObjectFile() local 119 if (uuid && uuid->IsValid()) { in LocateExecutableObjectFile() 121 llvm::ArrayRef<uint8_t> module_uuid = uuid->GetBytes(); in LocateExecutableObjectFile() 149 "UUID %s -- looking for the dSYM", in LocateExecutableObjectFile() 150 path, uuid->GetAsString().c_str()); in LocateExecutableObjectFile() 157 dsym_filespec, uuid, arc in LocateExecutableObjectFile() 330 FindSymbolFileInBundle(const FileSpec & dsym_bundle_fspec,const UUID * uuid,const ArchSpec * arch) FindSymbolFileInBundle() argument 369 FileAtPathContainsArchAndUUID(const FileSpec & file_fspec,const ArchSpec * arch,const lldb_private::UUID * uuid) FileAtPathContainsArchAndUUID() argument 537 const UUID *uuid = module_spec.GetUUIDPtr(); LocateMacOSXFilesUsingDebugSymbols() local 772 const UUID *uuid = module_spec.GetUUIDPtr(); LocateExecutableSymbolFile() local [all...] |
/llvm-project/lldb/test/API/macosx/lc-note/firmware-corefile/ |
H A D | create-empty-corefile.cpp | 9 #include <uuid/uuid.h> 15 // the UUID from that binary will be encoded in the corefile. 16 // Otherwise a pre-set UUID will be put in the corefile that 24 uuid_t uuid; member 88 int payload_file_offset, std::string uuid, uint64_t address) { in add_lc_note_kern_ver_str_load_command() argument 90 if (!uuid.empty()) { in add_lc_note_kern_ver_str_load_command() 91 ident = "EFI UUID="; in add_lc_note_kern_ver_str_load_command() 92 ident += uuid; in add_lc_note_kern_ver_str_load_command() 159 uuid_t uuid; in add_lc_note_main_bin_spec_load_command() local 202 std::string uuid; get_uuid_from_binary() local 317 std::string uuid = get_uuid_from_binary(argv[3], cputype, cpusubtype); main() local [all...] |
/llvm-project/lldb/test/Shell/ObjectFile/Breakpad/ |
H A D | uuid-matching-mac.test | 1 # RUN: yaml2obj %S/Inputs/uuid-matching-mac.yaml -o %T/uuid-matching-mac.out 3 # RUN: %lldb %T/uuid-matching-mac.out -s %s -o exit | FileCheck %s 5 target symbols add Inputs/uuid-matching-mac.syms 7 # CHECK: symbol file '{{.*}}uuid-matching-mac.syms' has been added to '{{.*}}uuid-matching-mac.out' 11 # CHECK: Address: uuid-matching-mac.out[0x0000000100000f90]
|
/llvm-project/lldb/source/Plugins/ObjectFile/JSON/ |
H A D | ObjectFileJSON.cpp | 81 UUID uuid; in CreateInstance() local 82 uuid.SetFromStringRef(header.uuid); in CreateInstance() 93 length, std::move(arch), std::move(uuid), type, in CreateInstance() 139 UUID uuid; in GetModuleSpecifications() local 140 uuid.SetFromStringRef(header.uuid); in GetModuleSpecifications() 143 spec.GetUUID() = std::move(uuid); in GetModuleSpecifications() 151 UUID uuid, Type type, in ObjectFileJSON() argument 155 m_arch(std::move(arch)), m_uuid(std::move(uuid)), m_type(type), in ObjectFileJSON() 208 return o && o.map("triple", header.triple) && o.map("uuid", header.uuid) && in fromJSON()
|
/llvm-project/lldb/docs/use/ |
H A D | symbols.rst | 8 The DebugSymbols.framework framework helps locate dSYM files when given a UUID. 14 - File mapped UUID paths 36 UUID values that point to dSYM files. See the "File Mapped UUID 39 look in any file mapped UUID directories for a quick match. 51 dSYM. The shell script will be run given a single UUID value as the 81 The shell script will be invoked with a single UUID string value like 84 UUID string values as the root key values, with a dictionary for each UUID. The 128 | | for the supplied UUID, a user | 180 you get multiple requests for the same UUID so that you don't end up 185 Embedding UUID property lists inside the dSYM bundles [all …]
|
/llvm-project/lldb/include/lldb/Interpreter/ |
H A D | OptionValueUUID.h | 12 #include "lldb/Utility/UUID.h" 21 OptionValueUUID(const UUID &uuid) : m_uuid(uuid) {} in OptionValueUUID() argument 47 UUID &GetCurrentValue() { return m_uuid; } in GetCurrentValue() 49 const UUID &GetCurrentValue() const { return m_uuid; } in GetCurrentValue() 51 void SetCurrentValue(const UUID &value) { m_uuid = value; } in SetCurrentValue() 57 UUID m_uuid;
|
/llvm-project/lldb/test/API/macosx/lc-note/kern-ver-str/ |
H A D | TestKernVerStrLCNOTE.py | 25 self.dsym_for_uuid = self.getBuildArtifact("dsym-for-uuid.sh") 28 ## We can hook in our dsym-for-uuid shell script to lldb with this env 35 dwarfdump_uuid_regex = re.compile("UUID: ([-0-9a-fA-F]+) \(([^\(]+)\) .*") 37 ('/usr/bin/dwarfdump --uuid "%s"' % self.test_exe), shell=True 44 self.assertNotEqual(aout_uuid, None, "Could not get uuid of built a.out") 46 ### Create our dsym-for-uuid shell script which returns self.test_exe 47 ### and its dSYM when given self.test_exe's UUID. 55 "# the last argument is probably the uuid", 89 ### which will give us a UUID 90 ### which we call dsym-for-uuid.sh with
|
/llvm-project/lldb/source/Core/ |
H A D | DynamicLoader.cpp | 160 if (UUID uuid = m_process->FindModuleUUID(file.GetPath())) { in FindModuleViaTarget() 161 // Process may be able to augment the module_spec with UUID, e.g. ELF core. in FindModuleViaTarget() 162 module_spec.GetUUID() = uuid; in FindModuleViaTarget() 198 Process *process, llvm::StringRef name, UUID uuid, addr_t value, in LoadBinaryWithUUIDAndAddress() 211 if (uuid.IsValid()) in LoadBinaryWithUUIDAndAddress() 212 prog_str << uuid.GetAsString(); in LoadBinaryWithUUIDAndAddress() 218 if (!uuid.IsValid() && !value_is_offset) { in LoadBinaryWithUUIDAndAddress() 222 uuid in LoadBinaryWithUUIDAndAddress() 189 LoadBinaryWithUUIDAndAddress(Process * process,llvm::StringRef name,UUID uuid,addr_t value,bool value_is_offset,bool force_symbol_search,bool notify,bool set_address_in_target,bool allow_memory_image_last_resort) LoadBinaryWithUUIDAndAddress() argument [all...] |
/llvm-project/lldb/test/API/macosx/lc-note/multiple-binary-corefile/ |
H A D | TestMultipleBinaryCorefile.py | 93 ## We can hook in our dsym-for-uuid shell script to lldb with this env 95 dsym_for_uuid = self.getBuildArtifact("dsym-for-uuid.sh") 110 dwarfdump_uuid_regex = re.compile("UUID: ([-0-9a-fA-F]+) \(([^\(]+)\) .*") 112 ('/usr/bin/dwarfdump --uuid "%s"' % self.libtwo_exe), shell=True 120 libtwo_uuid, None, "Could not get uuid of built libtwo.dylib" 123 ('/usr/bin/dwarfdump --uuid "%s"' % self.aout_exe), shell=True 130 self.assertNotEqual(aout_uuid, None, "Could not get uuid of built a.out") 132 ### Create our dsym-for-uuid shell script which returns aout_exe 135 "# the last argument is the uuid", 156 # UUID matches libtwo.dylib [all …]
|
/llvm-project/lldb/test/API/python_api/target-arch-from-module/ |
H A D | TestTargetArchFromModule.py | 28 dsym_for_uuid = self.getBuildArtifact("dsym-for-uuid.sh") 30 # We can hook in our dsym-for-uuid shell script to lldb with 37 dwarfdump_uuid_regex = re.compile("UUID: ([-0-9a-fA-F]+) \(([^\(]+)\) .*") 39 ('/usr/bin/dwarfdump --uuid "%s"' % aout_exe), shell=True 46 self.assertNotEqual(aout_uuid, None, "Could not get uuid of built a.out") 48 ### Create our dsym-for-uuid shell script which returns self.hidden_aout_exe. 51 "# the last argument is the uuid", 63 " uuid=%s" % aout_uuid, 71 'if [ -z "$uuid" -o -z "$bin" -o ! -f "$bin" ]',
|
/llvm-project/lldb/source/Plugins/ObjectFile/Mach-O/ |
H A D | ObjectFileMachO.h | 20 #include "lldb/Utility/UUID.h" 109 lldb_private::UUID GetUUID() override; 131 lldb_private::UUID &uuid, 167 static lldb_private::UUID 192 /// the shared cache UUID so the on-disk cache can be matched or rejected 196 lldb_private::UUID &uuid); 200 /// process' memory as an optimization. If lldb's shared cache UUID 201 /// does not match the process' shared cache UUID, thi 237 lldb_private::UUID uuid; global() member [all...] |
/llvm-project/lldb/test/API/functionalities/json/object-file/ |
H A D | TestObjectFileJSON.py | 7 import uuid 35 "uuid": str(uuid.uuid4()), 54 "uuid": str(uuid.uuid4()), 65 "uuid": str(uuid.uuid4()),
|
/llvm-project/llvm/test/Assembler/ |
H A D | dicompositetype-members.ll | 16 …EXT: !3 = !DICompositeType(tag: DW_TAG_structure_type, name: "has-uuid",{{.*}}, identifier: "uuid") 21 …Type(tag: DW_TAG_structure_type, name: "has-uuid", file: !1, line: 2, size: 64, align: 32, identif… 28 ; CHECK-NEXT: !8 = !DICompositeType(tag: DW_TAG_structure_type, name: "no-uuid", file: !1 33 !8 = !DICompositeType(tag: DW_TAG_structure_type, name: "no-uuid", file: !1, line: 2, size: 64, ali… 39 ; Add duplicate fields and members of "no-uuid" in a different file. These 40 ; should stick around, since "no-uuid" does not have an "identifier:" field. 46 ; Add duplicate fields and members of "has-uuid" in a different file. These
|
/llvm-project/lldb/source/Plugins/ObjectFile/Breakpad/ |
H A D | ObjectFileBreakpad.cpp | 25 UUID uuid; member 44 UUID uuid = Info && Info->ID ? Info->ID : Module->ID; in parse() local 45 return Header{ArchSpec(triple), std::move(uuid)}; in parse() 84 std::move(header->uuid)); in CreateInstance() 101 spec.GetUUID() = std::move(header->uuid); in GetModuleSpecifications() 111 UUID uuid) in ObjectFileBreakpad() argument 113 m_arch(std::move(arch)), m_uuid(std::move(uuid)) {} in ObjectFileBreakpad()
|
/llvm-project/lldb/test/API/macosx/skinny-corefile/ |
H A D | TestSkinnyCorefile.py | 29 self.dsym_for_uuid = self.getBuildArtifact("dsym-for-uuid.sh") 39 # We can hook in our dsym-for-uuid shell script to lldb with 46 dwarfdump_uuid_regex = re.compile("UUID: ([-0-9a-fA-F]+) \(([^\(]+)\) .*") 48 ('/usr/bin/dwarfdump --uuid "%s"' % self.aout_exe), shell=True 55 self.assertNotEqual(aout_uuid, None, "Could not get uuid of built a.out") 57 ### Create our dsym-for-uuid shell script which returns self.hide_aout_exe. 60 "# the last argument is the uuid", 72 " uuid=%s" % aout_uuid, 77 'if [ -z "$uuid" -o -z "$bin" -o ! -f "$bin" ]', 83 'echo "<dict><key>$uuid</key><dict>"',
|