小编给大家分享一下Shell中Debug命令怎么用,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!
-> dbgHelpb Display breakpoints and eventpointsb addr[,task[,count [,quiet]]] Set breakpointbi [bpId] Display breakpoint(s) detailed informatione addr[,eventNo[,task[,func[,arg]]]]] Set eventpointdprintf addr,task,count,fmtStr[,args] Set dynamic printf eventpointbd addr[,task] Delete breakpointbdall [task] Delete all breakpoints and eventpointsc [task[,addr[,addr1]]] Continue from breakpointcret [task] Continue to subroutine returns [task[,addr[,addr1]]] Single stepso [task] Single step/step over subroutinel [adr[,nInst]] List disassembled memorytt [task] Do stack trace on taskhdprintf addr,access,task,count,fmtStr[,args] Set hardware dynamic printf eventpoint (bh() help entry lists access modes)bh addr[,access[,task[,count[,quiet]]]] Set hardware breakpoint access : 0 - instruction 1 - write 1 byte 3 - read/write 1 byte 5 - write 2 bytes 7 - read/write 2 bytes d - write 4 bytes f - read/write 4 bytes 9 - write 8 bytes b - read/write 8 bytes
写个小栗子
#include <stdio.h>
void eee()
{
printf("!%s\n", __FUNCTION__);
}
void ddd()
{
printf("!%s\n", __FUNCTION__);
eee();
}
void ccc()
{
printf("!%s\n", __FUNCTION__);
ddd();
}
void bbb()
{
printf("!%s\n", __FUNCTION__);
ccc();
}
void aaa()
{
printf("!%s\n", __FUNCTION__);
bbb();
}
用它来试试这个dbgLib的操作
先加个断点,例如在bbb()的位置
以上是“Shell中Debug命令怎么用”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注亿速云行业资讯频道!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。