摘要: ## gdb常见指令 ### 1.编译 假设文件名为hello.c ``` gcc -ggdb3 -Wall -o hello hello.c ``` - 调试,需要在编译时加上选项`-ggdb3`选项 - `-Wall`: 可以提示错误信息 ### 2.进入gdb ````c gdb hello 阅读全文
posted @ 2023-06-30 17:59 INnoVation-V2 阅读(76) 评论(0) 推荐(0)
摘要: # 一个简单跳转过程的分析 ## 1.源代码如下 ```c #include int sub(int d, int e) { return d - e; } int sum(int a, int b) { int c = sub(100, 9); return a + b + c; } int ma 阅读全文
posted @ 2023-06-30 17:50 INnoVation-V2 阅读(75) 评论(0) 推荐(0)