GDB调试多进程程序 GDB调试多进程程序样例程序: 程序含义:父进程1通过fork创建一个子进程,该子进程是父进程的副本,共享代码段。 fork()调用之后,父进程的返回值是非零值;子进程的返回值是0 exec()会覆盖其地址空间,所以execlp之后的代码段不会再执行 所以,子进程是执行了10,1314;父进程是执行了10,13,1621。 进行调试: 常见指令: g++ -g test.c -o test:编 2020-12-20
编译原理 Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. 编译原理一 2020-12-18