It seems that running any program linked with vorbisfile in gdb causes gdb to 
hang immediately at the beginning of the program, even before reaching main().  
Note, everything works fine outside the debugger!

I've simplified it to a very basic sanity check:

#include <stdio.h>
extern int ov_open;

int
main (int argc, char **argv)
{
  printf ("ov_open is 0x%08x\n", &ov_open);
  return 0;
}

And here's the test:
$ gcc -g -o blah.exe blah.c $(pkg-config --cflags vorbisfile) $(pkg-config 
--libs vorbisfile)
$ ./blah
ov_open is 0x004010a0
$ gdb blah.exe
GNU gdb 6.3.50_2004-12-28-cvs (cygwin-special)
Copyright 2004 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) b mainCRTStartup
Breakpoint 1 at 0x401006
(gdb) r
Starting program: /home/wjl/projects/test/blah.exe

-- GDB and Blah.exe both hang at this point.

It seems that the mere presence of any symbol from vorbisfile, anywhere in the 
program, causes gdb to hang at the beginning of the program.  Does anyone 
else's gdb have the same behaviour?  If this is a widespread problem, I suppose 
it is a bug in gdb.  Please verify.

Thanks
Will


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to