httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgau...@hyperreal.org
Subject cvs commit: apachen/src .gdbinit
Date Tue, 27 Jan 1998 06:02:52 GMT
dgaudet     98/01/26 22:02:51

  Added:       src      .gdbinit
  Log:
  I needed a gdb macro to dump the contents of a table... I figured others
  might need it too.
  
  Revision  Changes    Path
  1.1                  apachen/src/.gdbinit
  
  Index: .gdbinit
  ===================================================================
  define dump_table
      set $t = (table_entry *)((array_header *)$arg0)->elts
      set $n = ((array_header *)$arg0)->nelts
      set $i = 0
      while $i < $n
  	printf "[%u] '%s'='%s'\n", $i, $t[$i].key, $t[$i].val
  	set $i = $i + 1
      end
  end
  document dump_table
      Print the key/value pairs in a table.
  end
  
  
  

Mime
View raw message