delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/08/07:00:04

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3BEA7241.4010406@netcom.es>
Date: Thu, 08 Nov 2001 11:53:37 +0000
From: Ignasi Villagrasa <gri AT netcom DOT es>
Organization: gri
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; es-ES; rv:0.9.2) Gecko/20010726 Netscape6/6.1
X-Accept-Language: es-es
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Using gdb

I have a problem using gdb. Following information appears in screen:


D:\mc\viao>gdb -nw s:\client\mcc_cyg\cmpr\debug\cmprnt
GNU gdb 5.0 (20010428-3)
Copyright 2001 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) break mc_cmp
Breakpoint 1 at 0x4026f8: file /comun/src/mc_cmp.cpp, line 689.
(gdb) r
Starting program: s:\client\mcc_cyg\cmpr\debug\cmprnt.exe
/cygnus/netrel/src/gdb-20010428-3/gdb/coffread.c:472: 
gdb-internal-error: sect_i
ndex_text not initialized



mc_cmp is the first line the program should execute after main. I insert 
a breakpoint in order to avoid any program related error. I get then the 
error and the program stops and doesn't arrive at the breakpoint. 
Obviously, if I try to run without breakpoint the error occurs as well.

If I run the program directly without gdb it works properly.

This program links a mcodbcnt.dll that is not a gcc compiled dll. It's a 
Watcom C++ compiled one. But it works fine without gdb.

Where am I going wrong ?

Or is there any problem ?

Thanks in advance. Ignasi Villagrasa.




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019