[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

GUDのnext line



こんにちは、山本です。
最近、Cygwin + Meadow3環境でC言語の勉強をしているのですが、
gudでnext lineをやっても、現在行の表示が出ません。

ckターミナルで直接gdbコマンドでデバッグすると、ちゃんと現在行が表示されます
--(ck ここから)-----
$ gdb hikisu.exe
(snipped)
This GDB was configured as "i686-pc-cygwin"...
(gdb) b 6
Breakpoint 1 at 0x40107a: file hikisu.c, line 6.
(gdb) run
Starting program: /export/home/taku/tmp/hikisu.exe

Breakpoint 1, main (argc=1, argv=0x552c10, envp=0x550090) at hikisu.c:6
6               printf("argc: \n\t%d\n", argc);
(gdb) n
9               printf("argv:\n");
(gdb) n
10              for (i = 0; i < argc; i++) {
(gdb)
--(ck ここまで)-----


しかし、Meadow3-r4094のGUDだと、現在行が表示されません。
--(GUD ここから)-----
Current directory is o:/home/taku/tmp/
GNU gdb 6.3.50_2004-12-28-cvs (cygwin-special)
Copyright 2004 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-cygwin"...
(gdb) set args a b c
(gdb) b 6
Breakpoint 1 at 0x40107a: file hikisu.c, line 6.
(gdb) run
Starting program: /export/home/taku/tmp/hikisu.exe a b c

Breakpoint 1, main (argc=4, argv=0x5530b8, envp=0x550090) at hikisu.c:6
(gdb) n
(gdb) n
(gdb) n
(gdb)
--(GUD ここから)-----

disp コマンドを叩いても出てきません。これは仕様なのでしょうか。
皆様、どうかご教授願います
以上

Attachment: meadow3-gud.jpg
Description: JPEG image