When a program writes to memory, the processor only modifies the line in the cache, but does not update main memory.
当一个程序写入存储,处理器仅仅只会修改缓存线,而不会更新主要的存储内容。
Finally, Listing 7 shows the main function of the program, which just calls the process_directory function for every argument passed on the command line.
最后,清单7显示了该程序的main函数,它只是对命令行中传递的每个参数调用了process_directory函数。
To see what's going on in main() we can set a breakpoint at a particular line or on a function in the program code so gdb will interrupt execution when it is reached.
为了查看在 main() 中发生了什么情况,可以在程序代码中的某一特定行或函数中设置断点,这样 gdb 会在遇到断点时中断执行。
应用推荐