The first time I did have debugging symbols. I did run from
the build
tree after compiling with -g but alas I did re-compile without -O.
Here's what was passed to configure from make:
configure:3141: cc -c -g -fPIC -I/usr/local/include/db42
-D_THREAD_SAFE -I/usr/local/include
Now then, here's my typescript:
Script started on Sat Apr 17 13:13:41 2004
GNU gdb 6.1
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 "amd64-unknown-freebsd5.2.1".
(gdb) file slapd
Reading symbols from slapd...done.
(gdb) run -d 256
Starting program:
/usr/ports/net/openldap22-server/work/openldap-2.2.8/servers/slapd/
.libs/slapd -d 256
@(#) $OpenLDAP: slapd 2.2.8 (Apr 17 2004 12:53:34) $
jlixfeld@eshara.ebit.ca:/usr/ports/net/openldap22-server/work/
openldap
-2.2.8/servers/slapd
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52:
(December 3,
2003)
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52:
(December 3,
2003)
bdb_db_init: Initializing BDB database
slapd starting
conn=0 fd=15 ACCEPT from IP=127.0.0.1:44636 (IP=0.0.0.0:389)
conn=0 op=0 BIND dn="" method=128
conn=0 op=0 RESULT tag=97 err=0 text=
conn=0 op=1 SRCH base="" scope=0 deref=0 filter="(objectClass=*)"
conn=0 op=1 SRCH attr=namingContexts
conn=0 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=0 op=2 UNBIND
conn=0 fd=15 closed
Program received signal SIGINT, Interrupt.
0x00000002014e669c in poll () from /lib/libc.so.5
(gdb) info threads
(gdb) thread apply all bt
(gdb) quit
The program is running. Exit anyway? (y or n) y