[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]
gud mode in Meadow
- X-ml-count: 73
- Subject: gud mode in Meadow
- From: Masaki Kochiya <kochiya@xxxxxxxxxxxxx>
- Date: Wed, 4 Mar 1998 11:05:11 +0900
- X-mailer: cmail 2.59.11 on GNU Emacs 20.2.1 / Mule 3.0 (MOMIJINOGA)
こんにちは、古知屋と申します。
現在、NT(SP2)上で、Meadow1.0とgud.elを用い、C言語のデバッグ環境を作ろうと
しています。
デバッガは、CygnusのGNU gdb 4.16-B19です。
gdbは正常に起動できるのですが、MeadowのWindowにCソースコードが表示されません。
例えば、text.exeという実行ファイルをデバッグしようとすると、以下のように
なります。
(1) Meadow上でgdbを起動
M-x gdb <return>
Run gdb (like this): gdb test.exe <return>
(2) break pointを設定し、debug開始。
Current directory is ~/work/
GNU gdb 4.16-B19
Copyright 1997 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. This version of GDB is supported This version of GDB is supported
for customers of Cygnus Solutions. Type "show warranty" for details.
This GDB was configured as "i386-cygwin32"...
(gdb) break main
(gdb) run
(3) 以下のように、MeadowのWindowが2つに分割されるが、矢印(=>)だけが表示され、
Cソースが表示されない。
+------------------------------------------------------------------+
|(gdb) |
| |
| |
| |
| |
| |
| |
+------------------------------------------------------------------+
|[--]S:** *gud-test.exe* (Debugger:run Encoded-kbd) |
+------------------------------------------------------------------+
|=> |
| |
| |
| |
| |
| |
+------------------------------------------------------------------+
|[--]S:-- test.c (C Encoded-kbd) |
+------------------------------------------------------------------+
なお、compileは、gcc -g -o test test.c のようにデバッグオプションを付けており、
Cソースコード(test.c)と実行ファイル(test.exe)は同一フォルダ上にあります。
また、bashから直接 gdb test.exe のように起動すると、コマンド入力用のGUIの
WindowとCソースコードが表示され、正常にgdbが動きます。
多分のgud.elに対する私の設定漏れだと思うのですが、このような環境でC言語の
ソースレベル・デバッグをされている方がいられましたら、アドバイスを頂けたら
と思います。
よろしくお願いします。
--
===============================================================================
Masaki Kochiya Sony Corporation E-Mail:kochiya@xxxxxxxxxxxxx
-------------------------------------------------------------------------------