Andes Workshop
http://forum.andestech.com/

請問如何在沒有AICE下追蹤call stack
http://forum.andestech.com/viewtopic.php?f=25&t=693
Page 1 of 1

Author:  blackhasondi [ Fri Apr 19, 2013 11:01 am ]
Post subject:  請問如何在沒有AICE下追蹤call stack

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

Author:  cindy [ Tue Apr 30, 2013 11:36 am ]
Post subject:  Re: 請問如何在沒有AICE下追蹤call stack

不建議這樣子做,
很不容易實現,非常複雜,
程式本身並沒有debug information。

還是用gdb來trace比較適合。

Author:  blackhasondi [ Wed Nov 27, 2013 8:58 pm ]
Post subject:  Re: 請問如何在沒有AICE下追蹤call stack

不好意思請問一下
假設我已取得stack pointer的位址
那如何在stack找出所有的return address(不用AICE)?

Author:  cindy [ Thu Nov 28, 2013 12:09 pm ]
Post subject:  Re: 請問如何在沒有AICE下追蹤call stack

您好,
建議用gdb來追蹤,
光是程式本身並不容易解譯出這種資訊。

Page 1 of 1 All times are UTC + 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/