C:\>gdb
GNU gdb 5.2.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-mingw32".
(gdb) target remote 172.16.12.249:10000 /home/innami/helloworld
172.16.12.249:10000 /home/innami/helloworld: No such file or directory.
のように、ターゲットプログラムを見つけてくれません。方法を教えてください。
実行ファイルは targetコマンドではなく、gdb起動時の引数か fileコマンドを使って指定します。
もちろん、それをやる前提として、local側の file systemに実行ファイル (ソースコードデバッグするならもちろんソースコードも) が必要です。
ちなみにちょっと心配になったのですが、gdbを実行する環境が (mingwなど) remoteの環境と異なる場合、cross-debug用に configureされた gdbも必要になります。念のため。