Skip to content

Commit 11058cc

Browse files
committed
[lldb/crashlog] Standardize file path key in the ScriptedProcess Dictionary
This patch replaces the backing file path key to "file_path" to keep it consistent. rdar://101652618 Signed-off-by: Med Ismail Bennani <[email protected]>
1 parent fced207 commit 11058cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lldb/examples/python/crashlog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ def load_crashlog_in_scripted_process(debugger, crash_log_file, options, result)
11041104
raise InteractiveCrashLogException("couldn't import crashlog scripted process module")
11051105

11061106
structured_data = lldb.SBStructuredData()
1107-
structured_data.SetFromJSON(json.dumps({ "crashlog_path" : crashlog_path,
1107+
structured_data.SetFromJSON(json.dumps({ "file_path" : crashlog_path,
11081108
"load_all_images": options.load_all_images }))
11091109
launch_info = lldb.SBLaunchInfo(None)
11101110
launch_info.SetProcessPluginName("ScriptedProcess")

lldb/examples/python/scripted_process/crashlog_scripted_process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def __init__(self, target: lldb.SBTarget, args : lldb.SBStructuredData):
7171

7272
self.crashlog_path = None
7373

74-
crashlog_path = args.GetValueForKey("crashlog_path")
74+
crashlog_path = args.GetValueForKey("file_path")
7575
if crashlog_path and crashlog_path.IsValid():
7676
if crashlog_path.GetType() == lldb.eStructuredDataTypeString:
7777
self.crashlog_path = crashlog_path.GetStringValue(4096)

0 commit comments

Comments
 (0)