Skip to content

Commit c10fcd3

Browse files
authored
Merge pull request swiftlang#5567 from medismailben/stable/20220421
2 parents c40fd34 + 11058cc commit c10fcd3

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lldb/examples/python/crashlog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ class TextCrashLogParser(CrashLogParser):
645645
r'(.+?)\s+' # img_name
646646
r'(?:' +version+ r'\s+)?' # img_version
647647
r'(0x[0-9a-fA-F]{4,})' # addr (4 chars or more)
648-
r' +(.*)' # offs
648+
r'(?: +(.*))?' # offs
649649
)
650650
null_frame_regex = re.compile(r'^\d+\s+\?\?\?\s+0{4,} +')
651651
image_regex_uuid = re.compile(r'(0x[0-9a-fA-F]+)' # img_lo
@@ -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)

lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.crash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Terminating Process: exc handler [21606]
2929

3030
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
3131
0 a.out @foo@ foo + 16 (test.c:3)
32-
1 a.out @bar@ bar + 9 (test.c:6)
32+
1 a.out @bar@
3333
2 a.out @main@ main + 20 (test.c:8)
3434
3 libdyld.dylib 0x1000000 start + 1
3535

lldb/unittests/Utility/StructuredDataTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ TEST(StructuredDataTest, GetDescriptionEmpty) {
3838

3939
StreamString S;
4040
object_sp->GetDescription(S);
41-
EXPECT_EQ(0, S.GetSize());
41+
EXPECT_EQ(0u, S.GetSize());
4242
}
4343

4444
TEST(StructuredDataTest, GetDescriptionBasic) {

0 commit comments

Comments
 (0)