[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 <medismail.bennani@gmail.com>
This commit is contained in:
parent
40afc69e6d
commit
acba66fdde
|
@ -1104,7 +1104,7 @@ def load_crashlog_in_scripted_process(debugger, crash_log_file, options, result)
|
|||
raise InteractiveCrashLogException("couldn't import crashlog scripted process module")
|
||||
|
||||
structured_data = lldb.SBStructuredData()
|
||||
structured_data.SetFromJSON(json.dumps({ "crashlog_path" : crashlog_path,
|
||||
structured_data.SetFromJSON(json.dumps({ "file_path" : crashlog_path,
|
||||
"load_all_images": options.load_all_images }))
|
||||
launch_info = lldb.SBLaunchInfo(None)
|
||||
launch_info.SetProcessPluginName("ScriptedProcess")
|
||||
|
|
|
@ -71,7 +71,7 @@ class CrashLogScriptedProcess(ScriptedProcess):
|
|||
|
||||
self.crashlog_path = None
|
||||
|
||||
crashlog_path = args.GetValueForKey("crashlog_path")
|
||||
crashlog_path = args.GetValueForKey("file_path")
|
||||
if crashlog_path and crashlog_path.IsValid():
|
||||
if crashlog_path.GetType() == lldb.eStructuredDataTypeString:
|
||||
self.crashlog_path = crashlog_path.GetStringValue(4096)
|
||||
|
|
Loading…
Reference in New Issue