Skip to content

Instantly share code, notes, and snippets.

@nhaehnle
nhaehnle / auto-add-symbol-files.py
Created November 26, 2023 18:56
gdb script for loading symbol files by correlating stack frames with /proc/$pid/maps
# gdb script:
#
# source /path/to/this/script
# auto-add-symbol-files
#
# Tries to load symbol files by correlating stack frames with /proc/$pid/maps.
# Useful when debugging native code issues in programs running under Wine/Proton.
#
# Author: Nicolai Hähnle <nhaehnle@gmail.com>
# Use at your own risk, blah blah.
@@ -117,9 +113,7 @@ bool ABIInfo::isPromotableIntegerTypeForABI(QualType Ty) const {
return false;
}
-ABIInfo::~ABIInfo() = default;
-
-SwiftABIInfo::~SwiftABIInfo() = default;
+ABIInfo::~ABIInfo() {}
/// Does the given lowering require more than the given number of