This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem with debugging ld.so


Under Linux,

# gdb /lib/ld-linux.so.2
...
(gdb) b dl_main
Breakpoint 1 at 0x2567: file rtld.c, line 397.
(gdb) r
Starting program: /lib/ld-linux.so.2 
Breakpoint 1 at 0x80002567: file rtld.c, line 397.

Breakpoint 1, dl_main (phdr=0x80000034, phnum=3, user_entry=0xbffff2e8)
    at rtld.c:397
warning: Source file is more recent than executable.

397       char *file;
(gdb) 

# gdb /lib/ld-linux.so.2
...
(gdb) r
...
(gdb) b dl_main
Cannot access memory at address 0x80002550

It looks like after ld.so is run, I can no longer set breakpoints
in ld.so.


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]