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

Gdb next and finish (memory map)
http://forum.andestech.com/viewtopic.php?f=23&t=731
Page 1 of 1

Author:  cindy [ Tue Aug 13, 2013 11:53 am ]
Post subject:  Gdb next and finish (memory map)

Gdb command next and finish use "SW breakpoint" to implement it.

If you would like to use HW breakpoints to implement next and finish, you could use memory map in AndeSight to force it to set HW breakpoints.
Attachment:
map.png
map.png [ 25.93 KiB | Viewed 5998 times ]


---------------------
This is from gdb manual
http://sourceware.org/gdb/onlinedocs/gd ... reaks.html

For some targets, gdb can automatically decide if hardware or software breakpoints should be used, depending on whether the breakpoint address is read-only or read-write. This applies to breakpoints set with the break command as well as to internal breakpoints set by commands like next and finish. For breakpoints set with hbreak, gdb will always use hardware breakpoints.

You can control this automatic behaviour with the following commands::


set breakpoint auto-hw on
This is the default behavior. When gdb sets a breakpoint, it will try to use the target memory map to decide if software or hardware breakpoint must be used.
set breakpoint auto-hw off
This indicates gdb should not automatically select breakpoint type. If the target provides a memory map, gdb will warn when trying to set software breakpoint at a read-only address.

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