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

Cannot hit breakpoint
http://forum.andestech.com/viewtopic.php?f=23&t=768
Page 1 of 1

Author:  cindy [ Mon Dec 23, 2013 5:04 pm ]
Post subject:  Cannot hit breakpoint

If CPU cannot stop at breakpoint, one cause is the elf file doesn't contain debug information.
In gdb traces, it shows the following content.

498,941 18^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending=\
"MAIN.c:20",times="0",original-location="MAIN.c:20"}

The "pending" in breakpoint means the address is not resolved.
The reference information:
https://sourceware.org/gdb/onlinedocs/g ... reaks.html

To add debug information, we can set debug level as -g3 in AndeSight compiler Setting.
Attachment:
g3.gif
g3.gif [ 19.24 KiB | Viewed 6771 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/