Skip to content

Commit 3d3c48b

Browse files
author
rchamala
committed
Fix nit
1 parent c14b6df commit 3d3c48b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,6 @@ ScriptedProcess::GetLoadedDynamicLibrariesInfos() {
446446
return error_with_message("Couldn't cast image object into dictionary.");
447447

448448
ModuleSpec module_spec;
449-
llvm::StringRef value;
450449

451450
bool has_path = dict->HasKey("path");
452451
bool has_uuid = dict->HasKey("uuid");
@@ -461,9 +460,10 @@ ScriptedProcess::GetLoadedDynamicLibrariesInfos() {
461460
module_spec.GetFileSpec().SetPath(path);
462461
}
463462

463+
llvm::StringRef uuid = "";
464464
if (has_uuid) {
465-
dict->GetValueForKeyAsString("uuid", value);
466-
module_spec.GetUUID().SetFromStringRef(value);
465+
dict->GetValueForKeyAsString("uuid", uuid);
466+
module_spec.GetUUID().SetFromStringRef(uuid);
467467
}
468468

469469
lldb::addr_t load_addr = LLDB_INVALID_ADDRESS;

lldb/test/API/functionalities/scripted_process/stack_core_scripted_process.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __init__(self, exe_ctx: lldb.SBExecutionContext, args: lldb.SBStructuredData
6666
or not module_path_arg.IsValid()
6767
or not module_path_arg.GetType() == lldb.eStructuredDataTypeString
6868
):
69-
return
69+
continue
7070

7171
module_path = module_path_arg.GetStringValue(100)
7272

@@ -89,7 +89,7 @@ def __init__(self, exe_ctx: lldb.SBExecutionContext, args: lldb.SBStructuredData
8989
)
9090

9191
if not corefile_module or not corefile_module.IsValid():
92-
return
92+
continue
9393

9494
module_load_addr = (
9595
corefile_module.GetObjectFileHeaderAddress().GetLoadAddress(

0 commit comments

Comments
 (0)