Skip to content

Commit 633a2d7

Browse files
author
Tom Yang
committed
Add "err" column
1 parent fe1f287 commit 633a2d7

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

lldb/source/Commands/CommandObjectTarget.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,10 +1481,10 @@ static bool GetSeparateDebugInfoList(StructuredData::Array &list,
14811481

14821482
static void DumpDwoFilesTable(Stream &strm,
14831483
StructuredData::Array &dwo_listings) {
1484-
strm.PutCString("Dwo ID Dwo Path");
1484+
strm.PutCString("Dwo ID Err Dwo Path");
14851485
strm.EOL();
14861486
strm.PutCString(
1487-
"------------------ -----------------------------------------");
1487+
"------------------ --- -----------------------------------------");
14881488
strm.EOL();
14891489
dwo_listings.ForEach([&strm](StructuredData::Object *dwo) {
14901490
StructuredData::Dictionary *dict = dwo->GetAsDictionary();
@@ -1499,12 +1499,12 @@ static void DumpDwoFilesTable(Stream &strm,
14991499

15001500
llvm::StringRef error;
15011501
if (dict->GetValueForKeyAsString("error", error))
1502-
strm << "error: " << error;
1502+
strm << "E " << error;
15031503
else {
15041504
llvm::StringRef resolved_dwo_path;
15051505
if (dict->GetValueForKeyAsString("resolved_dwo_path",
15061506
resolved_dwo_path)) {
1507-
strm << resolved_dwo_path;
1507+
strm << " " << resolved_dwo_path;
15081508
if (resolved_dwo_path.ends_with(".dwp")) {
15091509
llvm::StringRef dwo_name;
15101510
if (dict->GetValueForKeyAsString("dwo_name", dwo_name))
@@ -1519,9 +1519,9 @@ static void DumpDwoFilesTable(Stream &strm,
15191519

15201520
static void DumpOsoFilesTable(Stream &strm,
15211521
StructuredData::Array &oso_listings) {
1522-
strm.PutCString("Mod Time Oso Path");
1522+
strm.PutCString("Mod Time Err Oso Path");
15231523
strm.EOL();
1524-
strm.PutCString("------------------ ---------------------");
1524+
strm.PutCString("------------------ --- ---------------------");
15251525
strm.EOL();
15261526
oso_listings.ForEach([&strm](StructuredData::Object *oso) {
15271527
StructuredData::Dictionary *dict = oso->GetAsDictionary();
@@ -1534,11 +1534,11 @@ static void DumpOsoFilesTable(Stream &strm,
15341534

15351535
llvm::StringRef error;
15361536
if (dict->GetValueForKeyAsString("error", error))
1537-
strm << "error: " << error;
1537+
strm << "E " << error;
15381538
else {
15391539
llvm::StringRef oso_path;
15401540
if (dict->GetValueForKeyAsString("oso_path", oso_path))
1541-
strm << oso_path;
1541+
strm << " " << oso_path;
15421542
}
15431543
strm.EOL();
15441544
return true;

lldb/test/API/commands/target/dump-separate-debug-info/dwo/TestDumpDwo.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ def test_dwos_loaded_table_output(self):
8989
patterns=[
9090
"Symbol file: .*?a\.out",
9191
'Type: "dwo"',
92-
"Dwo ID\s+Dwo Path",
93-
"0x[a-zA-Z0-9]{16}.*main\.dwo",
94-
"0x[a-zA-Z0-9]{16}.*foo\.dwo",
92+
"Dwo ID\s+Err\s+Dwo Path",
93+
"0x[a-zA-Z0-9]{16}\s+.*main\.dwo",
94+
"0x[a-zA-Z0-9]{16}\s+.*foo\.dwo",
9595
],
9696
)
9797

@@ -115,8 +115,8 @@ def test_dwos_not_loaded_table_output(self):
115115
patterns=[
116116
"Symbol file: .*?a\.out",
117117
'Type: "dwo"',
118-
"Dwo ID\s+Dwo Path",
119-
"0x[a-zA-Z0-9]{16}.*error:.*main\.dwo",
120-
"0x[a-zA-Z0-9]{16}.*error:.*foo\.dwo",
118+
"Dwo ID\s+Err\s+Dwo Path",
119+
"0x[a-zA-Z0-9]{16}\s+E\s+.*main\.dwo",
120+
"0x[a-zA-Z0-9]{16}\s+E\s+.*foo\.dwo",
121121
],
122122
)

lldb/test/API/commands/target/dump-separate-debug-info/oso/TestDumpOso.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ def test_shows_oso_loaded_table_output(self):
8787
patterns=[
8888
"Symbol file: .*?a\.out",
8989
'Type: "oso"',
90-
"Mod Time\s+Oso Path",
91-
"0x[a-zA-Z0-9]{16}.*main\.o",
92-
"0x[a-zA-Z0-9]{16}.*foo\.o",
90+
"Mod Time\s+Err\s+Oso Path",
91+
"0x[a-zA-Z0-9]{16}\s+.*main\.o",
92+
"0x[a-zA-Z0-9]{16}\s+.*foo\.o",
9393
],
9494
)
9595

@@ -113,8 +113,8 @@ def test_shows_oso_not_loaded_table_output(self):
113113
patterns=[
114114
"Symbol file: .*?a\.out",
115115
'Type: "oso"',
116-
"Mod Time\s+Oso Path",
117-
"0x[a-zA-Z0-9]{16}.*error:.*main\.o",
118-
"0x[a-zA-Z0-9]{16}.*error:.*foo\.o",
116+
"Mod Time\s+Err\s+Oso Path",
117+
"0x[a-zA-Z0-9]{16}\s+E\s+.*main\.o",
118+
"0x[a-zA-Z0-9]{16}\s+E\s+.*foo\.o",
119119
],
120120
)

0 commit comments

Comments
 (0)