Package: gdb
Version: 7.1-1
I had one program I'm writing and started getting these strange gdb
errors, I narrowed it down to linking with libdbi. This is the problem I
see:
csm...@elmo:~$ cat test.c
#include <stdio.h>
#include <dbi/dbi.h>
int main(int argc, char *argv[])
{
printf("Hello, World!\n");
dbi_initialize(NULL);
return 0;
}
csm...@elmo:~$ gcc -ggdb -o test test.c -ldbi
csm...@elmo:~$ gdb ./test
GNU gdb (GDB) 7.1-debian
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show
copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/csmall/test...done.
(gdb) run
Starting program: /home/csmall/test
Hello, World!
[Thread debugging using libthread_db enabled]
Cannot find new threads: generic error
(gdb) n
Cannot execute this command while the selected thread is running.
(gdb) info threads
Cannot find new threads: generic error
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gdb depends on:
ii gdbserver 7.1-1 The GNU Debugger (remote server)
ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib
ii libexpat1 2.0.1-7 XML parsing C library - runtime li
ii libncurses5 5.7+20100313-2 shared libraries for terminal hand
ii libreadline6 6.1-2 GNU readline and history libraries
ii python2.5 2.5.5-4 An interactive high-level object-o
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
gdb recommends no packages.
Versions of packages gdb suggests:
pn gdb-doc <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]