1.5.18-1: hang when stepping over g_thread_init

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

1.5.18-1: hang when stepping over g_thread_init

Mark Van Regenmorter
I'm noticing that when I step over the function g_thread_init, the gdb
hangs.

I created a program to test the function g_thread_init which exhibited
the
same behavior.  I have included the program below.


Other information:

I did not see problem running cygwin 1.5.12-1 with glib2 2.4.8-1 and
gdb 20041228-2


Files:

/**********************
  START test.c
 **********************/
#include <stdio.h>
#include <glib.h>

int main(void)
{
  printf("Start\n");
  g_thread_init(NULL);
  printf("End\n");

  return (1);
}
/**********************
  END test.c
 **********************/


/**********************
  START Makefile
 **********************/
test : test.o
        gcc -O0 -ggdb3 -o test. test.o -lglib-2.0 -lgobject-2.0
-lgthread-2.0

test.o : test.c
        gcc -O0 -ggdb3 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -c test.c

.PHONY : clean
clean :
        -rm test.exe test.o
       
all : test

/**********************
  END Makefile
 **********************/


Any thoughts/suggestions?

cygcheck.out (61K) Download Attachment