This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Examples of user-defined commands in GDB?
- To: GDB Mailing List <gdb at sourceware dot cygnus dot com>
- Subject: Examples of user-defined commands in GDB?
- From: Paul Dubuc <pdubuc at cas dot org>
- Date: Thu, 04 Oct 2001 17:20:08 -0400
- Organization: Chemical Abstracts Service (CAS)
Can anybody point me to some good examples of user defined commands and
their documentation in gdb. Chapter 17 of the manual is a little short
on examples. I'm trying to translate some user-defined commands we have
for dbx on Solaris to some sort of equivalent in gdb (while not knowing
either debugger very well). It would be nice to seem some non-trivial
examples showing the syntax of define, if, while, document commands.
Can anyone help?
Thanks,
--
Paul M. Dubuc pdubuc@cas.org