This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: GDB as a program analyzer - some thoughts
- From: "Chris January" <chris at atomice dot net>
- To: <gdb at sources dot redhat dot com>
- Date: Tue, 18 May 2004 18:05:42 +0100
- Subject: RE: GDB as a program analyzer - some thoughts
> This post deals about using GDB for non-debugging purposes, I hope it's
> not offtopic. I'm also hoping to find some people interested in the same
> matters than I to discuss about how GDB could be improved for analysis
> purposes.
See:
http://www.argreenhouse.com/papers/hira/spe93.pdf
for a program trace/dynamic analysis tool built on top of gdb and gcc.
I'm currently working on a program tracing tool for i386 that uses Valgrind
and GDB for my final year project. It should allow you to query program
traces using SQL.
Example:
set filter {x>5}
history
or some similar syntax.
would show you all the places when (and where) the variable x (when in
scope) had a value greater than 5.
Feel free to mail me off list if you want to discuss this kind of thing any
further.
Regards,
Chris