[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LD_DEBUG not giving anything

From: Marcus Brinkmann
Subject: Re: LD_DEBUG not giving anything
Date: Sun, 17 Jun 2001 01:49:34 +0200
User-agent: Mutt/1.2i

On Sat, Jun 16, 2001 at 07:41:32PM -0400, Roland McGrath wrote:
> It's not your breakpoint, it's the starting trap.  You can't use "run" to
> debug initialization, because the initial SIGTRAP is sent after libc is
> initialized.  You need to attach to the task before it starts running.  

Ok, I used shd like you told me.  I used gdb to attach to the pausing thread.
After attaching, I pressed return, set the breakpoint  (it wasn't possible
the other way round) and then hit continue.

This is what I got:

GNU gdb 5.0
Copyright 2000 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 "i386-unknown-gnu0.2"...
/mnt2/15236: No such file or directory.
Attaching to program `/zzz/zzz/zzz/ld-2.2.3.so', pid 15236

warning: Can't modify tracing state for pid 15236: No signal thread
[Switching to bogus thread id 1]
Can't fetch registers from thread 1: No such thread
(gdb) break __open
Breakpoint 1 at 0xefef: file ../sysdeps/mach/hurd/dl-sysdep.c, line 506.
(gdb) c
warning: Can't wait for pid 15236: No child processes
warning: Pid 15236 died with unknown exit status, using SIGKILL.

Program terminated with signal SIGKILL, Killed.
The program no longer exists.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]