GDB -- 尝试定位本地主机时"Operation not permitted"
GDB -- "Operation not permitted" when trying to target localhost
由于某些原因,当我尝试在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吗?
相关文章:
- OpenMP卸载说'fatal error: could not find accel/nvptx-none/mkoffload'
- 使用JsonCpp将数据返回到带有pybind11的python会在python调用中产生Symbol not foun
- OpenCV Android C++ imwrite not found
- 应用程序崩溃并显示"symbol _ZdlPvm, version Qt_5 not defined in file libQt5Core.so.5 with link time reference"
- 使用单词"not"作为C ++类的名称会导致VS2019错误
- 错误"Could not find Boost"(缺少:上下文标头)
- 如何修复"error: ‘_1’ was not declared in this scope"?
- 套接字连接"Operation not permitted"错误,甚至使用升压/平发器根.cpp
- Is !NaN not a NaN?
- 为什么我会" void value not ignored as it ought to be"?
- 解决"ld: library not found for -ltensorflow_framework.2.3.0"
- C++命令行"Operation not allowed in WOW64"
- 尝试等待 boost::condition_Variable 时出现"unique_lock has no mutex: Operation not permitted"错误
- Linux gnu++11,在运行时获取"Enable multithreading to use std::thread: Operation not permitted"
- "Operation not permitted" 在 El Capitan 上运行 hello world 二进制编译 w/ clang++
- 尝试执行已编译的 C++ 时"Operation not permitted"
- 当所有 Windows 应用尝试使用 TCP 套接字时,我的应用导致错误 - 收到"operation on a socket could not be performed because..." (
- 尝试在 Visual Studio 2010 Pro SP1 中添加资源会导致"The operation could not be completed. Unspecified error"消息C+
- 抑制套接字"Operation not permitted"错误
- GDB -- 尝试定位本地主机时"Operation not permitted"