zhaog / aspersa

Automatically exported from code.google.com/p/aspersa
0 stars 0 forks source link

pmp: tweak readability for unresolved frames #61

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Do not convert '#.. 0x... ?? ()' into '::??' (less readable).

--- pmp.orig    2010-11-15 12:28:47.468285615 +0200
+++ pmp 2010-11-15 11:56:54.008160458 +0200
@@ -72,7 +72,7 @@
                gsub(/ ?(void|const) ?/, "", targ);
                gsub(/ /, "", targ);
             }
-            else if ( targ ~ /\\?\\?/ && \$2 ~ /[1-9]/ ) {
+            else if ( targ ~ /\\?\\?/ && \$2 ~ /^0x[0-9]/ && \$NF != "()") {
                # Substitute ?? by the name of the library.
                targ = \$NF;
                while ( targ ~ /\\// ) {

Original issue reported on code.google.com by ygrekheretix on 15 Nov 2010 at 10:32