簡體   English   中英

重新設置斷點中的gdb錯誤(無法訪問內存)

[英]gdb error in re-settings breakpoint (cannot access memory)

我試圖讓gdb在pcbsd10(freebsd10)中設置斷點。

我用調試符號編譯了我的代碼,這里是gdb的輸出

GNU gdb (GDB) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-freebsd10.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from tor...done.
(gdb) break config.c:3626
Breakpoint 1 at 0xfde72: file src/or/config.c, line 3626.
(gdb) run
Starting program: /usr/home/jon/swdev/apps/tor/src/or/tor -f /home/jon/torrc
Error in re-setting breakpoint 1: Cannot access memory at address 0xfdb90
Error in re-setting breakpoint 1: Cannot access memory at address 0xfdb90
...

我的代碼繼續運行而不會在斷點處停止。

這里發生了什么? 如何更深入地了解gdb失敗的原因?

您可能正在查看此GDB 錯誤

雖然看起來GDB 7.7應該已經有了修復,但您可能需要嘗試7.7.1。

或者,將二進制文件構建為非PIE二進制文件(從Makefile中刪除-fPIE )。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM