+=head1 Defining and Using Custom gdb Macros

cool. this partially answers one of my offline questions :)


just one thing...

  +
  +GDB provides two ways to store sequences of commands for execution as
  +a unit: user-defined commands and command files. See:
  +http://sources.redhat.com/gdb/current/onlinedocs/gdb_21.html
  +
  +Apache 2.0 source comes with a nice pack of macros and can be found in
  +I<httpd-2.0/.gdbinit>. To use it issue:
  +
  +  gdb> source /wherever/httpd-2.0/.gdbinit
  +
  +Now if for example you want to dump the contents of the bucket
  +brigade, you can do:
  +
  +  gdb> dump_brigade my_brigade
  +
  +where C<my_brigade> is the pointer to the bucket brigade that you want
  +to debug.

where can you find a list of the name of the brigades? say I want to dump all the output filters - what are they called or, better, where do I look for them?


--Geoff


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to