On Mon, Nov 06, 2000 at 01:33:21AM +1000, [EMAIL PROTECTED] wrote:
> Hi,
>
> I have a program compiled with -pthread and I'm trying to use gdb to debug
> it. I run the program in one window and then try to attach to it from
> another. I have put a sleep 10 in the program so I can catch it before it
> enters the section I want to debug. This is what I get:
>
> Attaching to program: /usr/home/andrew/work/msgs2/msgs, process 10063
> Reading symbols from /usr/lib/libc_r.so.4...done.
> Reading symbols from /usr/libexec/ld-elf.so.1...done.
> 0x280b7368 in _thread_sys_poll () from /usr/lib/libc_r.so.4
^^^^^^^^^^^
For reasons that I don't entirely understand, using gdb with dynamically
linked applications usually produces very undesireable (often totally
incorrect) results on FreeBSD. I don't know that this is the problem, but
the first thing I'd do if I were you would be to link statically.
Jason
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message