This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gdb and egcs


I have a problem using gdb on egcs generated code.  Gdb works fine on the
first pass through the program.  On the second pass it hangs right after
the "running ..." message, if there are arguments.  Running with no arguments
does not display this message, but it still hangs.  And it hangs pretty good--
doesn't respond to ^C or kill (Win32) or abort task (Windows95).

Any help would be appreciated.

---------------------- begin the culprit -------------------
#include <stdio.h>
void f(int a, int b, int c)
{
  printf("f:  %d %d %d\n",a,b,c);
}

main()
{
  int a,b,c;
  a = 1;
  b = 2;
  c = a+b;
  f(a,b,c);
  printf("main: %d %d %d\n",a,b,c);
}
---------------------- end the culprit -------------------

-- 
John F. Kolen				voice: (850)474-3075 
Assistant Professor			fax:   (850)474-3023
Dept. of Computer Science
University of West Florida
Pensacola, FL 32514
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]