Andes Workshop

It is currently Thu Mar 28, 2024 7:40 pm

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: 請問如何在沒有AICE下追蹤call stack
PostPosted: Fri Apr 19, 2013 11:01 am 
Offline

Joined: Wed Apr 17, 2013 11:41 pm
Posts: 2
如題.
我試過在把SP的address抓出來,但stack會有return address, input argument或者是local variables?
我現在是想寫個小工具在系統exception的時候列出call stack (call trace),像Linux這樣.
不知道是否有辦法做到?


Top
 Profile Send private message E-mail  
 
 Post subject: Re: 請問如何在沒有AICE下追蹤call stack
PostPosted: Tue Apr 30, 2013 11:36 am 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
不建議這樣子做,
很不容易實現,非常複雜,
程式本身並沒有debug information。

還是用gdb來trace比較適合。


Top
 Profile Send private message E-mail  
 
 Post subject: Re: 請問如何在沒有AICE下追蹤call stack
PostPosted: Wed Nov 27, 2013 8:58 pm 
Offline

Joined: Wed Apr 17, 2013 11:41 pm
Posts: 2
不好意思請問一下
假設我已取得stack pointer的位址
那如何在stack找出所有的return address(不用AICE)?


Top
 Profile Send private message E-mail  
 
 Post subject: Re: 請問如何在沒有AICE下追蹤call stack
PostPosted: Thu Nov 28, 2013 12:09 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
您好,
建議用gdb來追蹤,
光是程式本身並不容易解譯出這種資訊。


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group