8
8
9
9
##=======================================================================
10
10
11
- ADDR2LINE = "addr2line"
12
11
DOT = "dot"
13
12
FILE = "file"
14
13
@@ -581,7 +580,7 @@ def lookupFunctionNames (self, props):
581
580
582
581
for f in self ._sites_by_file :
583
582
584
- cmd = [ ADDR2LINE ]
583
+ cmd = [ props . addr2line () ]
585
584
if inln :
586
585
cmd += [ "-i" ]
587
586
cmd += [ "-C" , "-f" , "-e" , f .jname () ]
@@ -846,6 +845,7 @@ def __init__ (self, argv):
846
845
self ._font_size = 20
847
846
self ._stem = "ssp"
848
847
self ._display_top = False
848
+ self ._addr2line = "addr2line"
849
849
850
850
self .parse (argv )
851
851
@@ -901,8 +901,13 @@ def displayTop (self):
901
901
902
902
##----------------------------------------
903
903
904
+ def addr2line (self ):
905
+ return self ._addr2line
906
+
907
+ ##----------------------------------------
908
+
904
909
def parse (self , argv ):
905
- short_opts = "n:e:ht:j:if:s:d "
910
+ short_opts = "n:e:ht:j:if:s:da: "
906
911
long_opts = [ "num-nodes=" ,
907
912
"num-edges=" ,
908
913
"jail=" ,
@@ -911,7 +916,8 @@ def parse (self, argv):
911
916
"inlining" ,
912
917
"font-size=" ,
913
918
"stem=" ,
914
- "display-top" ]
919
+ "display-top" ,
920
+ "addr2line=" ]
915
921
916
922
types = []
917
923
try :
@@ -967,6 +973,9 @@ def parse (self, argv):
967
973
elif o in ("-d" , "--display-top" ):
968
974
self ._display_top = True
969
975
976
+ elif o in ("-a" , "--addr2line" ):
977
+ self ._addr2line = a
978
+
970
979
else :
971
980
self .usage (err = "unknown argument: %s" % o )
972
981
0 commit comments