1

何らかの理由で、cygwinの下のWindowsマシンでGDBを使用しようとすると、最新のソースからコンパイルした後でも、次のことができません。

target remote localhost:1234

代わりに、私がそれを試してみると、次のように書かれています。

localhost:1234: Operation not permitted.

ただし、同じコマンドがArchLinuxVMとOSX10.5.8コンピューターで問題なく機能します。AFAIKは、古いバージョンのgdbを使用しています。「i586-pc-elf-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/>.
4

2 に答える 2

0

これはばかげているように聞こえるかもしれませんが、1234 で実行されている gdbserver があると確信していますか?

于 2011-05-03T22:26:11.597 に答える
0

-ggdbx" オプションを使用してコードをコンパイルしてみてください: CFLAGS = -Wall -g -ggdb3 -O0

于 2011-05-03T22:11:50.397 に答える