小编Joh*_*ang的帖子

GDB 报告“当前文件中没有第 92 行。” 但我实际上有92行

当我测试基于 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)

c debugging gdb operating-system memory-size

3
推荐指数
1
解决办法
1748
查看次数

标签 统计

c ×1

debugging ×1

gdb ×1

memory-size ×1

operating-system ×1