delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-MimeOLE: | Produced By Microsoft Exchange V6.0.5762.3 |
content-class: | urn:content-classes:message |
MIME-Version: | 1.0 |
Subject: | Cannot run gdb on source compiled with g++. |
Date: | Sat, 4 May 2002 11:08:06 +0530 |
Message-ID: | <72669A0FE83515438921FDE03D49364757AD68@kecmsg09.ad.infosys.com> |
X-MS-Has-Attach: | |
X-MS-TNEF-Correlator: | |
From: | "Raghuraman" <raghuraman AT infy DOT com> |
To: | <cygwin AT cygwin DOT com> |
X-OriginalArrivalTime: | 04 May 2002 05:38:06.0930 (UTC) FILETIME=[DE279B20:01C1F32D] |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id g445eQG25056 |
Hi, I am not able to run gdb successfully. gdb runs successfully for the binaries shipped with cygwin - say ls or date (I can do assembly level debugging). However, when I compile code with g++ with/without debug info, gdb gives me error 193. Source file: #include<iostream> void main (void){ using std::ostream; cout << "Hello world " <<endl; } Compile command g++ -g Hello.cpp -o Hello gdb commandline and dump gdb -nw hello.exe [~/Unix/Src/CPP]>gdb -nw hello.exe GNU gdb 5.0 (20010428-1) 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) run Starting program: /cygdrive/c/Documents and Settings/raghuraman/Unix/Src/CPP/hel lo.exe Error creating process /cygdrive/c/Documents and Settings/raghuraman/Unix/Src/CP P/hello.exe, (error 193) (gdb) -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |