Subject: gdb and egcs
From: [email-masked] (John F. Kolen)

5 Jan 1998 13:46:09 -0800
Message-ID: <[email-masked]>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
To: [email-masked]

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
"[email-masked]" with one line of text: "help".