源码编译流程:

源码:hello_word.c+头文件stdio.h经过预处理gcc -E,得到hello_word.i;

hello_word.i编译(gcc -S)生成hello_word.S;

汇编(gcc -C)生成hello_word.o

hello_word.o跟库文件链接生成目标文件。

gdbserver和kgdb

缺点:仅对应用程序进行调试,一次只能跟踪一个应用程序,不能独立存在,必须使用ptrace系统调用接口。

gdbserver和kgdb


转载于:https://blog.51cto.com/4989715/1420100

相关文章:

  • 2022-01-21
  • 2021-06-25
  • 2021-06-08
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
猜你喜欢
  • 2021-07-24
  • 2022-12-23
  • 2021-05-26
  • 2021-06-27
  • 2022-12-23
  • 2022-01-13
相关资源
相似解决方案