GDB -- 尝试定位本地主机时"Operation not permitted"

GDB -- "Operation not permitted" when trying to target localhost

本文关键字:Operation not permitted 主机 定位 GDB      更新时间:2023-10-16

由于某些原因,当我尝试在cygwin下的windows机器上使用GDB时,即使从最新的源代码编译它,它也不让我执行:

target remote localhost:1234

相反,当我尝试这样做时,它说:

localhost:1234: Operation not permitted.

然而,同样的命令在我的Arch Linux VM和OSX 10.5.8计算机上工作得很好。据我所知,它们使用的是旧版本的gdb。"i586-pc- self -gdb -v"报告:

GNU gdb (GDB) 7.2
Copyright (C) 2010 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 "--host=i686-pc-cygwin --target=i586-pc-elf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.

尝试使用-ggdbx"选项编译代码:CFLAGS = -Wall -g -ggdb3 - 0

这可能听起来很愚蠢,但是您确定在1234上运行了gdbserver吗?

相关文章: