mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add a -verify-debug-info option that invokes dwarfdump --verify as the last step after running dsymutil. dwarfdump is invoked with same options clang 802.0.35 uses to invoke it: dwarfdump --verify --debug-info --eh-frame --quiet A warning is produced if -verify-debug-info is set and no debug option is also set. dwarfdump is failing to validate the debug info in the test verify-debug-info.swift. The failure is: error: .debug_line[0x0000007d].row[0].file = 1 is not a valid index https://bugs.swift.org/browse/SR-2396
9 lines
682 B
Swift
9 lines
682 B
Swift
// RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-macosx10.10 -g -verify-debug-info -o verify-debug-info %s 2>&1 | %FileCheck %s -check-prefix=VERIFY-DEBUG-INFO
|
|
|
|
// RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-macosx10.10 -gdwarf-types -verify-debug-info %s 2>&1 | %FileCheck %s -check-prefix=VERIFY-DEBUG-INFO
|
|
|
|
// RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-macosx10.10 -gline-tables-only -verify-debug-info %s 2>&1 | %FileCheck %s -check-prefix=VERIFY-DEBUG-INFO
|
|
|
|
// VERIFY-DEBUG-INFO: dsymutil verify-debug-info -o verify-debug-info.dSYM
|
|
// VERIFY-DEBUG-INFO: dwarfdump --verify --debug-info --eh-frame --quiet verify-debug-info.dSYM
|