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

reset and hold的gdb command
http://forum.andestech.com/viewtopic.php?f=16&t=242
Page 1 of 1

Author:  cindy [ Wed Jan 11, 2012 4:47 pm ]
Post subject:  reset and hold的gdb command

reset and hold的gdb command:
其中flushregs是將registers重抓一次,
不然會印出gdb cache的內容。

$ nds32le-elf-gdb.exe
GNU gdb (2011-07-29) 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-mingw32 --target=nds32le-elf".
source E:\Andestech\AndeSight200MCU\toolchains\nds32le-elf-newlib-v2\bin\.Andesg
dbinit
(gdb) target remote:1234
Remote debugging using :1234
0x000083b8 in ?? ()
core0(gdb) monitor reset hold
OK
core0(gdb) p/x $pc
$1 = 0x83b8
core0(gdb) flushregs
Register cache flushed.
core0(gdb) p/x $pc
$2 = 0x0
core0(gdb) p/x $pc
$3 = 0x0
core0(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/