delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/01/21/14:11:48

From: scottk AT utig DOT ig DOT utexas DOT edu (Scott Kempf)
Subject: Re: GDB on program with args
21 Jan 1997 14:11:48 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199701211953.NAA28482.cygnus.gnu-win32@utig.ig.utexas.edu>
Original-To: gnu-win32 AT cygnus DOT com, jepler AT inetnebr DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Jeff Epler <jepler AT inetnebr DOT com> writes:
>I'm trying to use gdb, but I'm having lots of problems.  It just plain
>doesn't work if I 'run [args]'.
>
>Here's a transcript from gdb:
>
>This GDB was configured as "i386-cygwin32"...
>(gdb) break main
>Breakpoint 1 at 0x401027: file foo.c, line 2.
>(gdb) run
     .
     .
     .
>Program exited with code 01.
>(gdb) run -v -l jepler falcon.inetnebr.com
>Starting program: /src/test/a.exe -v -l jepler falcon.inetnebr.com
>[gdb locks up here, if I try to 'kill' it with kill.exe, windows 95
>locks up]

I have no trouble passing args with gdb, but I do
have the same problem you show.  If I try to run
anything in gdb the second time, it always locks
up.  I haven't tried to debug this yet.  I just
always quit and rerun gdb if I want to rerun a
program.

If you do lock up gdb this way, kill causes Windows 95
to hang.  However, you can click the [x] box on the
console and do an End Task.  This kills your shell, but
at least you don't have to reboot.

			Scott
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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