Re: [opensc-devel] debugging opensc-tool with gdb gives error: generic error

2010-01-25 Thread Andreas Jellinghaus
Am Montag 25 Januar 2010 08:02:05 schrieb Bart Vanherck: > On Wed, Jan 20, 2010 at 05:30:53PM +0100, Andreas Jellinghaus wrote: > > you need to compile opensc with "-pthread" in CFLAGS and LIBS. > > OpenSC itself is not multi-threaded AFAIK, but it loads > > libraries that are, and that confuses th

Re: [opensc-devel] debugging opensc-tool with gdb gives error: generic error

2010-01-24 Thread Bart Vanherck
On Wed, Jan 20, 2010 at 05:30:53PM +0100, Andreas Jellinghaus wrote: > you need to compile opensc with "-pthread" in CFLAGS and LIBS. > OpenSC itself is not multi-threaded AFAIK, but it loads > libraries that are, and that confuses the debugger. > Indeed, after putting -pthread in CFLAGS and -lpth

Re: [opensc-devel] debugging opensc-tool with gdb gives error: generic error

2010-01-20 Thread Andreas Jellinghaus
you need to compile opensc with "-pthread" in CFLAGS and LIBS. OpenSC itself is not multi-threaded AFAIK, but it loads libraries that are, and that confuses the debugger. if you compile it with "-pthread", the compiler and linker will put debug info for threadding in the metadata and gdb should wo

Re: [opensc-devel] debugging opensc-tool with gdb gives error: generic error

2010-01-20 Thread Douglas E. Engert
Bart Vanherck wrote: > Hello, > > I tried today to debug the opensc-tool program but it seems not to work > for me. > > Steps to reproduce my problem: > > First checkout the trunk of other release > svn co http://www.opensc-project.org/svn/opensc/trunk/ > > $ ./bootstrap > $ ./configure >

[opensc-devel] debugging opensc-tool with gdb gives error: generic error

2010-01-20 Thread Bart Vanherck
Hello, I tried today to debug the opensc-tool program but it seems not to work for me. Steps to reproduce my problem: First checkout the trunk of other release svn co http://www.opensc-project.org/svn/opensc/trunk/ $ ./bootstrap $ ./configure My CFLAGS are including -g for debug info $ make