]> jfr.im git - irc/unrealircd/unrealircd.git/blob - .bugreport.gdb
- Undid that. Version is now 3.3-willneverbereleased.
[irc/unrealircd/unrealircd.git] / .bugreport.gdb
1 #
2 # UnrealIRCd Bug Reporting Script
3 # Copyright (c) 2001, The UnrealIRCd Team
4 # All rights reserved
5 #
6 # Redistribution and use in source and binary forms, with or without modification, are permitted
7 # provided that the following conditions are met:
8 #
9 # * Redistributions of source code must retain the above copyright notice, this list of conditions
10 # and the following disclaimer.
11 # * Redistributions in binary form must reproduce the above copyright notice, this list of conditions
12 # and the following disclaimer in the documentation and/or other materials provided with the
13 # distribution.
14 # * Neither the name of the The UnrealIRCd Team nor the names of its contributors may be used
15 # to endorse or promote products derived from this software without specific prior written permission.
16 # * The source code may not be redistributed for a fee or in closed source
17 # programs, without expressed oral consent by the UnrealIRCd Team, however
18 # for operating systems where binary distribution is required, if URL
19 # is passed with the package to get the full source
20 # * No warranty is given unless stated so by the The UnrealIRCd Team
21 #
22 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'' AND ANY EXPRESS OR
23 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
24 # FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
25 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
27 # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
31 # First we define some nice settings and some nice functions
32 set print pretty on
33
34 # dumplist <linked list> <structure format>
35 define dumplist
36 echo Dumping linked list $arg0 in format $arg1\n
37 set $p = $arg0
38 while $p
39 print *($arg1 *) $p
40 set $p = $p->next
41 end
42 end
43
44 # dumparray <name> <size>
45 define dumparray
46 echo Dumping array $arg0 size $arg1\n
47 set $p = 0
48 while $p < $arg1
49 if $arg0[$p]
50 print *$arg0[$p]
51 end
52 set $p = $p + 1
53 end
54 end
55
56 echo Full backtrace:\n
57 echo ---------------\n
58 echo \n
59 bt full
60 echo \n
61 echo Backup parse() buffer:\n
62 echo ----------------------\n
63 echo \n
64 print backupbuf
65 echo \n
66 echo me output:\n
67 echo ----------------------\n
68 print me
69 echo \n
70 echo IRCstats:\n
71 echo ----------------------\n
72 print IRCstats
73 echo \n
74 echo Modules:\n
75 echo ----------------------\n
76 dumparray Modules 50
77 quit