From df4af0df26ca88f715437cc34c97add466e414ee Mon Sep 17 00:00:00 2001 From: answer-huang Date: Mon, 4 May 2015 18:27:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20Slide=20address?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 如果应用运行在 arm64 上的 CPU 时,Slide address,跟之前不一样了,所以需要提供 Slide address。 --- dSYM.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dSYM.py b/dSYM.py index 2bf394b..7b68511 100644 --- a/dSYM.py +++ b/dSYM.py @@ -84,6 +84,14 @@ def __init__(self, parent, title): hbox3.Add(self.memAddress, 1, wx.EXPAND) self.vbox.Add(hbox3, 0, wx.EXPAND | wx.ALL, 5) + self.slideAddressStr = wx.StaticText(self.panel, -1, u'请输入 Slide Address:') + self.vbox.Add(self.slideAddressStr, 0, wx.ALL, 5) + + self.slideAddress = wx.TextCtrl(self.panel, -1) + hbox3 = wx.BoxSizer(wx.HORIZONTAL) + hbox3.Add(self.slideAddress, 1, wx.EXPAND) + self.vbox.Add(hbox3, 0, wx.EXPAND | wx.ALL, 5) + self.fileBtn = wx.Button(self.panel, -1, u'分析') self.fileBtn.Bind(wx.EVT_BUTTON, self.startCalc) hbox4 = wx.BoxSizer(wx.HORIZONTAL) @@ -143,7 +151,7 @@ def EvtRadioBox(self, event): def startCalc(self, event): if self.memAddress.GetValue(): - comString = 'xcrun atos -arch ' + self.selectedArchiveType + ' -o ' + str(self.appFilePath) + ' ' + self.memAddress.GetValue() + comString = 'xcrun atos -arch ' + self.selectedArchiveType + ' -o ' + str(self.appFilePath) + ' -l ' + self.slideAddress.GetValue() + ' ' + self.memAddress.GetValue() tmp = os.popen(comString).readlines() self.maybeReasonContent.SetValue(tmp[0])