aboutsummaryrefslogtreecommitdiff
path: root/lib/parsers/asm-parser-dotnet.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/parsers/asm-parser-dotnet.ts')
-rw-r--r--lib/parsers/asm-parser-dotnet.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/parsers/asm-parser-dotnet.ts b/lib/parsers/asm-parser-dotnet.ts
index d067a6d84..09ffeb7dc 100644
--- a/lib/parsers/asm-parser-dotnet.ts
+++ b/lib/parsers/asm-parser-dotnet.ts
@@ -47,7 +47,11 @@ export class DotNetAsmParser implements IAsmParser {
if (!trimmedLine || trimmedLine.startsWith(';')) continue;
if (trimmedLine.endsWith(':')) {
if (trimmedLine.includes('(')) {
- methodDef[line] = trimmedLine.substring(0, trimmedLine.length - 1);
+ let methodSignature = trimmedLine.substring(0, trimmedLine.length - 1);
+ if ((methodSignature.match(/\(/g) || []).length > 1) {
+ methodSignature = methodSignature.substring(0, methodSignature.lastIndexOf('(')).trimEnd();
+ }
+ methodDef[line] = methodSignature;
allAvailable.push(methodDef[line]);
} else {
labelDef[line] = {
@@ -114,8 +118,6 @@ export class DotNetAsmParser implements IAsmParser {
}
if (line.startsWith('Emitting R2R PE file')) continue;
- if (line.startsWith(';') && !line.startsWith('; Emitting')) continue;
-
cleanedAsm.push(line);
}