Andes Workshop http://forum.andestech.com/ |
|
gdb script應用 http://forum.andestech.com/viewtopic.php?f=16&t=31 |
Page 1 of 1 |
Author: | cindy [ Fri Mar 25, 2011 7:26 pm ] |
Post subject: | gdb script應用 |
這裡有一個gdb的範例,它執行一個程式的執行。 Code: target remote :9901 file startup-lm.elf load continue quit 執行時,板子電源打開,LCD顯示為67,接上ICE。 啟動ICEman ICEman.exe –port 9901 然後,另外一個cygwin視窗執行這個.txt檔 nds32le-elf-gdb.exe –x run_startup_lm.txt 可以看到Console裏執行程式的內容。 任何gdb的command,都可以寫成這種類似batch file的格式執行。 Attachment: pp1.gif [ 9.09 KiB | Viewed 8632 times ] Attachment: pp2.gif [ 20.04 KiB | Viewed 8632 times ] Attachment: pp3.gif [ 10.86 KiB | Viewed 8632 times ] |
Page 1 of 1 | All times are UTC + 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |