Skip to content

Commit

Permalink
增加 Slide address
Browse files Browse the repository at this point in the history
如果应用运行在 arm64 上的 CPU 时,Slide address,跟之前不一样了,所以需要提供 Slide address。
  • Loading branch information
answer-huang committed May 4, 2015
1 parent f4fcf77 commit df4af0d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dSYM.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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])

Expand Down

0 comments on commit df4af0d

Please sign in to comment.