This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Examples of user-defined commands in GDB?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]