From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12943 invoked by alias); 10 Aug 2006 20:32:55 -0000 Received: (qmail 12935 invoked by uid 22791); 10 Aug 2006 20:32:55 -0000 X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 10 Aug 2006 20:32:53 +0000 Received: from home.wh0rd.org (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 990AA646A1 for ; Thu, 10 Aug 2006 20:32:51 +0000 (UTC) Received: (qmail 7199 invoked from network); 10 Aug 2006 16:30:26 -0400 Received: from unknown (HELO vapier) (192.168.0.2) by 192.168.0.1 with SMTP; 10 Aug 2006 16:30:26 -0400 From: Mike Frysinger To: gdb@sourceware.org Subject: slow script execution when debugging large binaries Date: Thu, 10 Aug 2006 20:32:00 -0000 User-Agent: KMail/1.9.3 Cc: jzhang918@gmail.com MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1867489.hf7GOYqLbR"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200608101633.08373.vapier@gentoo.org> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00088.txt.bz2 --nextPart1867489.hf7GOYqLbR Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-length: 777 i'm playing with kgdb and in the process have been learning/writing up litt= le=20 code snippets to make debugging easier ... for example, a small function th= at=20 will dump the dmesg buffer in kgdb ... now, the issue at hand isnt kgdb :) consider this simple function: define speed-test shell date set $start =3D 1 set $end =3D 3000 while ($start !=3D $end) set $start =3D $start + 1 end printf "DONE\n" shell date end gives me these results with gdb-6.5: (gdb) speed-test Thu Aug 10 16:27:05 EDT 2006 DONE Thu Aug 10 16:27:05 EDT 2006 (gdb) file vmlinux Reading symbols from vmlinux...done. (gdb) speed-test Thu Aug 10 16:27:30 EDT 2006 DONE Thu Aug 10 16:27:47 EDT 2006 this is done on an AMD64 Opteron 252 (~2.6gigz) so speed shouldnt be an=20 issue :) -mike --nextPart1867489.hf7GOYqLbR Content-Type: application/pgp-signature Content-length: 827 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) iQIVAwUARNuYBEFjO5/oN/WBAQKqcg/8Cb1mpsFQET8oEBFmI5SECL9a8SgvXz/I f/rCv0c0nYhVoljNPOUK9+hx0LKAyaSux1evYkjC/e4rtBuVxJPl1qRNkJMioN4+ SPOLaE+5MwDiZuvWxCX+1uy9wCMbLP/oCzQFFEKa7J6msMTtitsDdbwM8nm/Ze4i Zot3ygCndGeWLHYsD7bYwheSLM+RBMrnhi4egMxdxMqwqftCk1OpHgZyD6KX50DF nRteQCA4KcdFVPa6X4oLfpVTBJU4D46iwf9pcwXFpbLOUe4GGSSJlL04lVw7FviO BIp2Pm2YaOSu0semNhZctD/MGZnqwxWMmke6+mbIpFzPdNz22lXSOvq41k5r/pFE NKyuGxtKzg2IEzP95gotqbx5LnSd/O8mGsJz5l5XP0P0TiC8GG9SUMVK32yGBMoB wuEzXiRBEjfAUTEIbBKbMIbDOUzVk/HjLCI2td0e+UDe6AU1es4Hl7mWGVIy369C g1zbXf47NyIDm5DHSGeCIiY5dHzPpXgQF6K29BaVo671q4XJlWLuqMvGHoW8i7Uz cFbT9nel3obfTmg2Hzdaks/fSMCQwpVq4Bkb4F423eSIMc8cWa1UfeL8okc5UZum 5XGIlTNEjo9V86ol2iccvaNtaiezRqtazfZBCUb6zGQS8TvysC7euQBQY1OueO07 gKo0mPg7Wa0= =LHUV -----END PGP SIGNATURE----- --nextPart1867489.hf7GOYqLbR--