* Cannot run gdb on source compiled with g++.
@ 2002-05-03 22:40 Raghuraman
0 siblings, 0 replies; only message in thread
From: Raghuraman @ 2002-05-03 22:40 UTC (permalink / raw)
To: cygwin
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/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-05-04 5:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-03 22:40 Cannot run gdb on source compiled with g++ Raghuraman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).