Andes Workshop http://forum.andestech.com/ |
|
用shell script時,ctrl-C會退出gdb的解決方法 http://forum.andestech.com/viewtopic.php?f=23&t=572 |
Page 1 of 1 |
Author: | cindy [ Tue Apr 24, 2012 2:36 pm ] |
Post subject: | 用shell script時,ctrl-C會退出gdb的解決方法 |
(1)複製問題的方法 附件解壓縮後有2個sh檔。 如附件test.sh,只要將gdb包在shell script裡,用./test.sh啟動。 按下Ctrl-C之後會跳出gdb。 (2)問題發生的原因 因為Andesight v200 MCU的gdb是用Mingw編譯, 但是執行環境為cygwin。 (3)解法 sh檔的寫法 # 忽略 SIGINT trap "" 2 # gdb command gdb ... # 預設狀態 SIGINT trap 2 example請將附件解壓縮,看裡面的start_gdb.sh。 Attachment:
|
Page 1 of 1 | All times are UTC + 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |