File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,20 @@ private static void Main(string[] args) => Parser.Default.ParseArguments<Options
37
37
38
38
private static uint GetAlign ( uint length , uint align = 512 ) => length % align == 0 ? length : ( length / align + 1 ) * align ;
39
39
40
+ private static bool FilterName ( string name ) {
41
+ if ( name . StartsWith ( "_" ) )
42
+ return false ;
43
+ if ( name . StartsWith ( "??_" ) )
44
+ return false ;
45
+ if ( name . StartsWith ( "??@" ) )
46
+ return false ;
47
+ if ( name . Contains ( "std@@Q" ) )
48
+ return false ;
49
+ if ( name . Contains ( "std@@U" ) )
50
+ return false ;
51
+ return true ;
52
+ }
53
+
40
54
private static void RealMain ( Options options ) {
41
55
try {
42
56
if ( options . PdbFile == null )
@@ -55,7 +69,7 @@ private static void RealMain(Options options) {
55
69
var symdb = new SymbolDatabase ( ) ;
56
70
57
71
// Collect all symbols
58
- foreach ( var item in pdb . PublicSymbols . Where ( item => item . IsCode ) )
72
+ foreach ( var item in pdb . PublicSymbols . Where ( item => item . IsCode && FilterName ( item . Name ) ) )
59
73
symdb . Add ( ( uint ) item . RelativeVirtualAddress , item . Name ) ;
60
74
61
75
// Exclude imported symbols
You can’t perform that action at this time.
0 commit comments