当我测试基于 HOCA 系统的 os 类项目的中断模块时,我遇到了一个非常奇怪的错误。
当我启动主函数(从第 66 行到第 101 行),但当我在第 92 行设置断点时,gdb 说
No line 92 in the current file. Make breakpoint pending on future shared library load?
你们知道这是怎么回事吗?
此外,当我在第 92 行设置断点并继续 GDB 时,它报告:“
trap: nonexistant memory
address: -1
memory size: 131072
ERROR: address greater than MEMORYSIZE
Program received signal SIGSEGV, Segmentation fault.
0x0000002e in ?? ()
Run Code Online (Sandbox Code Playgroud)
”
源代码如下:
/* This module coordinates the initialization of the nucleus and it starts the execution
* of the first process, p1(). It …Run Code Online (Sandbox Code Playgroud)