From: Mike Frysinger <vapier@gentoo.org>
To: gdb@sourceware.org
Cc: jzhang918@gmail.com
Subject: slow script execution when debugging large binaries
Date: Thu, 10 Aug 2006 20:32:00 -0000 [thread overview]
Message-ID: <200608101633.08373.vapier@gentoo.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 790 bytes --]
i'm playing with kgdb and in the process have been learning/writing up little
code snippets to make debugging easier ... for example, a small function that
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 = 1
set $end = 3000
while ($start != $end)
set $start = $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
issue :)
-mike
[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]
next reply other threads:[~2006-08-10 20:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-10 20:32 Mike Frysinger [this message]
2006-08-10 20:40 ` Daniel Jacobowitz
2006-08-10 21:48 ` Mike Frysinger
2006-08-10 21:55 ` Daniel Jacobowitz
2006-08-10 22:04 ` Mike Frysinger
2006-08-10 22:05 ` Daniel Jacobowitz
2006-08-10 22:21 ` Mike Frysinger
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=200608101633.08373.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=gdb@sourceware.org \
--cc=jzhang918@gmail.com \
/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