From: Jim Blandy <jimb@codesourcery.com>
To: "dodji Seketeli" <dodji@seketeli.org>
Cc: gdb@sourceware.org
Subject: Re: gdb very slow during 'step into'
Date: Wed, 03 Jan 2007 23:37:00 -0000 [thread overview]
Message-ID: <m34pr71y26.fsf@codesourcery.com> (raw)
In-Reply-To: <adeacfc10701031358k50dd53e8x2815121cb073513f@mail.gmail.com> (dodji Seketeli's message of "Wed, 3 Jan 2007 22:58:04 +0100")
"dodji Seketeli" <dodji@seketeli.org> writes:
> I have applied the patch and it doesn't help, unfortunately.
Rats.
> I have tried to add some printf() around the patch to see if I could
> trace some stuff but nothing got printed on stdout. Is that normal ?.
> If yes, how can I add logs to understand what is going on ?
No; ordinary fprintf (stderr, ...) should work in GDB. You're using
GDB's command line interface, right? If that function isn't getting
called at all, then that may be part of the problem.
First, what kind of system are you using? You've mentioned Debian,
and binutils 2.17, but what architecture is it?
Could you set a breakpoint (or put an fprintf %p) in
set_gdbarch_skip_solib_resolver, and see what function gets passed
there, if anything? It should be glibc_skip_solib_resolver.
> Here is the content of the dynamic symbol table of my
> /lib/ld-linux.so:
>
> dodji@tintin:~$ objdump -T /lib/ld-linux.so.2 | grep dl
> 0000e6c0 g DF .text 00000117 GLIBC_PRIVATE _dl_make_stack_executable
> 0000d9c0 g DF .text 00000058 GLIBC_PRIVATE _dl_deallocate_tls
> 0000d990 g DF .text 00000022 GLIBC_PRIVATE _dl_get_tls_static_info
> 0000c010 g DF .text 00000005 GLIBC_PRIVATE _dl_debug_state
> 00015ca0 g DO .data.rel.ro 00000004 GLIBC_PRIVATE _dl_argv
> 0000df40 g DF .text 0000020a GLIBC_PRIVATE _dl_allocate_tls_init
> 0000e480 g DF .text 000000cb GLIBC_PRIVATE _dl_tls_setup
> 00006460 g DF .text 00000195 GLIBC_PRIVATE _dl_rtld_di_serinfo
> 00011b99 g DO .rodata 0000000e GLIBC_PRIVATE _dl_out_of_memory
> 0000cec0 g DF .text 0000022d GLIBC_2.1 _dl_mcount
> 0000e240 g DF .text 00000027 GLIBC_PRIVATE _dl_allocate_tls
>
> I don't see any _dl_fixup symbol in there, but maybe that is not relevant.
> Also, nm /lib/ld-linux.so.2 is stripped on my system, so nm is doesn't
> show anything.
Is /lib/ld-linux.so.2 normally installed stripped on your system? If
GDB can't find the address of the 'fixup' function, then it can't do
anything but single-step through the dynamic linker as it looks up the
symbol, which is where we're guessing you're spending your time.
next prev parent reply other threads:[~2007-01-03 23:37 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-02 15:24 dodji Seketeli
2007-01-02 19:29 ` Jim Blandy
2007-01-02 19:31 ` Daniel Jacobowitz
2007-01-02 19:48 ` Jim Blandy
2007-01-02 21:39 ` Mark Kettenis
2007-01-02 22:59 ` Andreas Schwab
2007-01-02 23:45 ` Jim Blandy
2007-01-02 23:57 ` Daniel Jacobowitz
2007-01-03 15:03 ` Andreas Schwab
2007-01-03 9:14 ` dodji Seketeli
2007-01-03 19:52 ` Jim Blandy
2007-01-03 19:59 ` Smith, Stephen (SWCOE)
2007-01-03 21:19 ` Jim Blandy
2007-01-03 20:59 ` Andreas Schwab
2007-01-03 21:17 ` Jim Blandy
2007-01-03 21:58 ` dodji Seketeli
2007-01-03 23:37 ` Jim Blandy [this message]
2007-01-03 23:42 ` Daniel Jacobowitz
2007-01-04 0:00 ` Jim Blandy
2007-01-04 10:04 ` dodji Seketeli
2007-01-04 3:28 ` Daniel Jacobowitz
2007-01-04 10:10 ` dodji Seketeli
2007-01-04 13:53 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m34pr71y26.fsf@codesourcery.com \
--to=jimb@codesourcery.com \
--cc=dodji@seketeli.org \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox