From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6563 invoked by alias); 18 Jul 2003 21:56:29 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6555 invoked from network); 18 Jul 2003 21:56:28 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 18 Jul 2003 21:56:28 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id BE0C72B7F; Fri, 18 Jul 2003 17:56:27 -0400 (EDT) Message-ID: <3F186D0B.5020902@redhat.com> Date: Fri, 18 Jul 2003 21:56:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Vazan Cc: gdb@sources.redhat.com Subject: Re: Terminally slow (75 seconds) on some steps References: <1057999221.6815.ezmlm@sources.redhat.com> <3F16D022.30209@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-07/txt/msg00263.txt.bz2 > On Thu, 17 Jul 2003 12:34:42 -0400 Andrew Cagney wrote: > > >> Is this a threaded program on GNU/Linux? 5.3 contained a major >> performance improvement for threaded debugging. > > > Threads are only planned. There is a lot of locks, but only one thread. > > >> Also, something from April '02 is seriously old. Try either 5.3, or a >> 6.0 snap (see http://www.gnu.org/software/gdb/download/) > > > I have here Cvs HEAD and it gives 68->11 seconds improvement. It still > isn't the same as outside debugger, but it's usable, especially because > single-stepping is faster too. 11 seconds per step? Still painfully slow :-( What exactly is the system your using? Can you capture strace/ktrace/truss output for GDB doing a stepi? By `locks' you mean? If the program is using lots of signals then, again, its going to get slow - they have to go through GDB. enjoy, Andrew