From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16739 invoked by alias); 4 Jan 2007 10:04:28 -0000 Received: (qmail 16731 invoked by uid 22791); 4 Jan 2007 10:04:27 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.168) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 04 Jan 2007 10:04:20 +0000 Received: by ug-out-1314.google.com with SMTP id 75so6795201ugb for ; Thu, 04 Jan 2007 02:04:17 -0800 (PST) Received: by 10.78.204.7 with SMTP id b7mr2456610hug.1167905057178; Thu, 04 Jan 2007 02:04:17 -0800 (PST) Received: by 10.78.136.20 with HTTP; Thu, 4 Jan 2007 02:04:17 -0800 (PST) Message-ID: Date: Thu, 04 Jan 2007 10:04:00 -0000 From: "dodji Seketeli" To: "Jim Blandy" Subject: Re: gdb very slow during 'step into' Cc: gdb@sourceware.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Google-Sender-Auth: 3d47b1f7531c531a Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-01/txt/msg00057.txt.bz2 > > 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. Okay, I was foolishly doing printf(). My fault. fprintf(stderr,...) does work. >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. It is actually getting called. This code fails: struct minimal_symbol *resolver = find_minsym_and_objfile ("_dl_runtime_resolve", &objfile); So the _dl_runtime_resolve symbol is not found. > > First, what kind of system are you using? You've mentioned Debian, > and binutils 2.17, but what architecture is it? x86. > Is /lib/ld-linux.so.2 normally installed stripped on your system? Yes . Cheers, Dodji.