utils 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +68 -0
- data/VERSION +1 -0
- data/bin/chroot-exec +12 -0
- data/bin/chroot-libs +18 -0
- data/bin/classify +37 -0
- data/bin/discover +137 -0
- data/bin/edit +74 -0
- data/bin/errf +32 -0
- data/bin/git-empty +8 -0
- data/bin/myex +90 -0
- data/bin/number_files +26 -0
- data/bin/same_files +37 -0
- data/bin/search +205 -0
- data/bin/sedit +3 -0
- data/bin/sshscreen +68 -0
- data/bin/term +21 -0
- data/bin/unquarantine_apps +8 -0
- data/bin/untest +17 -0
- data/bin/utils-install-config +10 -0
- data/bin/vacuum_firefox_sqlite +22 -0
- data/bin/xmp +74 -0
- data/lib/utils.rb +8 -0
- data/lib/utils/config.rb +23 -0
- data/lib/utils/config/gdb/asm +179 -0
- data/lib/utils/config/gdb/ruby +528 -0
- data/lib/utils/config/gdbinit +8 -0
- data/lib/utils/config/irbrc +455 -0
- data/lib/utils/config/rdebugrc +2 -0
- data/lib/utils/config/screenrc +143 -0
- data/lib/utils/config/vim/autoload/Align.vim +1029 -0
- data/lib/utils/config/vim/autoload/AlignMaps.vim +330 -0
- data/lib/utils/config/vim/autoload/rails.vim +4744 -0
- data/lib/utils/config/vim/autoload/rubycomplete.vim +801 -0
- data/lib/utils/config/vim/autoload/sqlcomplete.vim +741 -0
- data/lib/utils/config/vim/autoload/vimball.vim +750 -0
- data/lib/utils/config/vim/colors/flori.vim +113 -0
- data/lib/utils/config/vim/compiler/eruby.vim +40 -0
- data/lib/utils/config/vim/compiler/ruby.vim +67 -0
- data/lib/utils/config/vim/compiler/rubyunit.vim +34 -0
- data/lib/utils/config/vim/ftdetect/ragel.vim +2 -0
- data/lib/utils/config/vim/ftdetect/ruby.vim +17 -0
- data/lib/utils/config/vim/ftplugin/eruby.vim +100 -0
- data/lib/utils/config/vim/ftplugin/ruby.vim +260 -0
- data/lib/utils/config/vim/ftplugin/xml.vim +941 -0
- data/lib/utils/config/vim/indent/IndentAnything_html.vim +35 -0
- data/lib/utils/config/vim/indent/eruby.vim +77 -0
- data/lib/utils/config/vim/indent/javascript.vim +116 -0
- data/lib/utils/config/vim/indent/ruby.vim +377 -0
- data/lib/utils/config/vim/plugin/AlignMapsPlugin.vim +242 -0
- data/lib/utils/config/vim/plugin/AlignPlugin.vim +41 -0
- data/lib/utils/config/vim/plugin/Decho.vim +592 -0
- data/lib/utils/config/vim/plugin/IndentAnything.vim +675 -0
- data/lib/utils/config/vim/plugin/bufexplorer.vim +1144 -0
- data/lib/utils/config/vim/plugin/cecutil.vim +482 -0
- data/lib/utils/config/vim/plugin/fugitive.vim +1703 -0
- data/lib/utils/config/vim/plugin/lusty-explorer.vim +1509 -0
- data/lib/utils/config/vim/plugin/rails.vim +340 -0
- data/lib/utils/config/vim/plugin/rubyextra.vim +193 -0
- data/lib/utils/config/vim/plugin/surround.vim +628 -0
- data/lib/utils/config/vim/plugin/taglist.vim +4546 -0
- data/lib/utils/config/vim/plugin/test/IndentAnything/test.js +131 -0
- data/lib/utils/config/vim/plugin/vimballPlugin.vim +40 -0
- data/lib/utils/config/vim/syntax/Decho.vim +101 -0
- data/lib/utils/config/vim/syntax/eruby.vim +73 -0
- data/lib/utils/config/vim/syntax/javascript.vim +246 -0
- data/lib/utils/config/vim/syntax/ragel.vim +165 -0
- data/lib/utils/config/vim/syntax/ruby.vim +367 -0
- data/lib/utils/config/vimrc +461 -0
- data/lib/utils/file.rb +49 -0
- data/lib/utils/find.rb +54 -0
- data/lib/utils/md5.rb +23 -0
- data/lib/utils/patterns.rb +34 -0
- data/lib/utils/version.rb +8 -0
- data/utils.gemspec +33 -0
- metadata +183 -0
data/lib/utils.rb
ADDED
data/lib/utils/config.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
module Utils
|
4
|
+
module Config
|
5
|
+
extend FileUtils::Verbose
|
6
|
+
|
7
|
+
CONFIG_DIR = File.expand_path(__FILE__).sub(/#{Regexp.quote(File.extname(__FILE__))}\Z/, '')
|
8
|
+
|
9
|
+
def self.install_config
|
10
|
+
srcs = Dir[File.join(CONFIG_DIR, '*')]
|
11
|
+
dst_prefix = ENV['HOME'] or fail 'environment variable $HOME is required'
|
12
|
+
for src in srcs
|
13
|
+
dst = File.join(dst_prefix, ".#{File.basename(src)}")
|
14
|
+
if File.exist?(dst)
|
15
|
+
rm_rf "#{dst}.bak"
|
16
|
+
mv dst, "#{dst}.bak/", :force => true
|
17
|
+
end
|
18
|
+
cp_r src, dst
|
19
|
+
end
|
20
|
+
self
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,179 @@
|
|
1
|
+
|
2
|
+
# ASM DEBUGGING
|
3
|
+
# define special help command "h" that shows asm related commands only
|
4
|
+
#
|
5
|
+
define h
|
6
|
+
echo -------\n
|
7
|
+
echo asm debugging commands, see "help" for other gdb comands\n
|
8
|
+
echo \ \n
|
9
|
+
echo g <adr> exec & set temp break <adr> u <n> disassemble from pc n times\n
|
10
|
+
echo c run program (continue) uu <adr> <n> disassemble from adr n times\n
|
11
|
+
echo n step one instruction ss <n> show stack n locations\n
|
12
|
+
echo nn step but do not enter calls r show registers\n
|
13
|
+
echo until step or run to end of loop db <adr> <n> display bytes\n
|
14
|
+
echo \ dw <adr> <n> display words\n
|
15
|
+
echo q quit gdb dd <adr> <n> display dword\n
|
16
|
+
echo \ ds <adr> <n> display string\n
|
17
|
+
echo bs show breaks \n
|
18
|
+
echo bc clear breaks \n
|
19
|
+
echo \n
|
20
|
+
echo modifying the code within gdb requires reload, recompile easier? \n
|
21
|
+
echo to change register -> set $eax = 0x123456 \n
|
22
|
+
echo ------\n
|
23
|
+
end
|
24
|
+
#
|
25
|
+
# set gdb initialization flags - change these as needed
|
26
|
+
#
|
27
|
+
# eliminate the pesky exit message that says program is running
|
28
|
+
set confirm off
|
29
|
+
set language asm
|
30
|
+
# set disassembly-flavor intel
|
31
|
+
# enable the following to work in hex, the default is decimal
|
32
|
+
set output-radix 16
|
33
|
+
set input-radix 16
|
34
|
+
#
|
35
|
+
# disable pesky hook messages?? this may not be necessary in other versions of gdb
|
36
|
+
#
|
37
|
+
define hook-stop
|
38
|
+
end
|
39
|
+
define hook-continue
|
40
|
+
end
|
41
|
+
#------------- define special commands for assembler -------------------
|
42
|
+
#
|
43
|
+
# go (run) to temporary break location "g <label>"
|
44
|
+
#
|
45
|
+
define g
|
46
|
+
tbreak $arg0
|
47
|
+
continue
|
48
|
+
x/1i $pc
|
49
|
+
echo ----------\n
|
50
|
+
end
|
51
|
+
#
|
52
|
+
# show stack "ss <n>" where n is number of entries to show
|
53
|
+
#
|
54
|
+
define ss
|
55
|
+
x/$arg0xh $esp-(4 * $arg0)
|
56
|
+
end
|
57
|
+
#
|
58
|
+
# define nn to single step over calls
|
59
|
+
#
|
60
|
+
define nn
|
61
|
+
echo --------------
|
62
|
+
nexti
|
63
|
+
printf "eax=%x ebx=%x ecx=%x edx=%x esi=%x edi=%x ebp=%x esp=%x\n",$eax,$ebx,$ecx,$edx,$esi,$edi,$ebp,$esp
|
64
|
+
x /4i $pc
|
65
|
+
end
|
66
|
+
#
|
67
|
+
# define n to single step one instruction
|
68
|
+
#
|
69
|
+
define n
|
70
|
+
echo line-
|
71
|
+
si
|
72
|
+
printf "eax=%x ebx=%x ecx=%x edx=%x esi=%x edi=%x ebp=%x esp=%x eflags=%x\n",$eax,$ebx,$ecx,$edx,$esi,$edi,$ebp,$esp,$eflags
|
73
|
+
#disassemble $pc $pc+14
|
74
|
+
x /4i $pc
|
75
|
+
end
|
76
|
+
#
|
77
|
+
# define "u <n>" to disassemble n locations from $pc
|
78
|
+
#
|
79
|
+
define u
|
80
|
+
# x/$arg0i $eip
|
81
|
+
disassemble $eip $eip+$arg0
|
82
|
+
#disassemble $arg0
|
83
|
+
end
|
84
|
+
#
|
85
|
+
# define "uu <label> <n>" to disassemble n locations from given label
|
86
|
+
#
|
87
|
+
define uu
|
88
|
+
x/$arg1i $arg0
|
89
|
+
# disassemble $arg0 $arg0+$arg1
|
90
|
+
end
|
91
|
+
#
|
92
|
+
# define "bs" show breaks
|
93
|
+
#
|
94
|
+
define bs
|
95
|
+
info break
|
96
|
+
end
|
97
|
+
#
|
98
|
+
# define "bc" clear all breakpoints
|
99
|
+
#
|
100
|
+
define bc
|
101
|
+
delete
|
102
|
+
end
|
103
|
+
#
|
104
|
+
# define "r" show registers
|
105
|
+
#
|
106
|
+
define r
|
107
|
+
echo -----\n
|
108
|
+
printf "eax=%x ebx=%x ecx=%x edx=%x esi=%x edi=%x ebp=%x\n",$eax,$ebx,$ecx,$edx,$esi,$edi,$ebp
|
109
|
+
printf "esp=%x eip=%x flag=%x --> O D I T S Z - AC - P - C\n",$esp,$eip,$eflags
|
110
|
+
echo flags= Overflow, Direction, Interrupt, Trap, Sign, Zero, AuxCarry, Parity, Carry\n
|
111
|
+
x/i $pc
|
112
|
+
echo -----\n
|
113
|
+
end
|
114
|
+
#
|
115
|
+
# define "db <adr> <n>" display <n> bytes at <adr>
|
116
|
+
#
|
117
|
+
define db
|
118
|
+
x/$arg1xb $arg0
|
119
|
+
end
|
120
|
+
#
|
121
|
+
# define "dw <adr> <n>" display <n> words at <adr>
|
122
|
+
#
|
123
|
+
define dw
|
124
|
+
x/$arg1xh $arg0
|
125
|
+
end
|
126
|
+
#
|
127
|
+
# define "dd <adr> <n>" display <n> dwords at <adr>
|
128
|
+
#
|
129
|
+
define dd
|
130
|
+
x/$arg1xw $arg0
|
131
|
+
end
|
132
|
+
#
|
133
|
+
# define "ds <adr> <n>" display <n> char(ascii) at <adr>
|
134
|
+
#
|
135
|
+
define ds
|
136
|
+
x/$arg1cb $arg0
|
137
|
+
end
|
138
|
+
|
139
|
+
# attempt a string display...
|
140
|
+
define dstr
|
141
|
+
x /1sb &$arg0
|
142
|
+
end
|
143
|
+
|
144
|
+
|
145
|
+
set $asm_instruction_counter = 0
|
146
|
+
define icount
|
147
|
+
print "stepi instructions: %d\n", $asm_instruction_counter
|
148
|
+
end
|
149
|
+
|
150
|
+
define hook-n
|
151
|
+
set $asm_instruction_counter = $asm_instruction_counter + 1
|
152
|
+
end
|
153
|
+
|
154
|
+
define icountreset
|
155
|
+
set $asm_instruction_counter = 0
|
156
|
+
end
|
157
|
+
|
158
|
+
#
|
159
|
+
# start of code initialization ----------------------
|
160
|
+
#
|
161
|
+
# to initialize gdb we need to use the "run" command once, first
|
162
|
+
# we display the current instruction, then set a break at next location.
|
163
|
+
# Warning - the first instruction must be one byte long.
|
164
|
+
# Next, we start the program executing (run) then clear all breakpoints.
|
165
|
+
#
|
166
|
+
|
167
|
+
# x /1i *_start
|
168
|
+
# echo ---------------
|
169
|
+
# break *_start+1
|
170
|
+
# run
|
171
|
+
# delete
|
172
|
+
# x /1i *_start+1
|
173
|
+
|
174
|
+
echo \n---------\n
|
175
|
+
echo for some reason nasm symbols appear as functions? ignore\n
|
176
|
+
echo symbol related warnings.\n
|
177
|
+
echo \n
|
178
|
+
echo -------- type <h> for asm cmds <help> for gdb commands\n
|
179
|
+
|
@@ -0,0 +1,528 @@
|
|
1
|
+
|
2
|
+
###################
|
3
|
+
# #### RUBY STUFF
|
4
|
+
|
5
|
+
define eval
|
6
|
+
call (VALUE) rb_p((VALUE) rb_eval_string_protect($arg0,(int*)0))
|
7
|
+
end
|
8
|
+
|
9
|
+
define redirect_stdout
|
10
|
+
call (VALUE) rb_eval_string("$_old_stdout, $stdout = $stdout, File.open('/tmp/ruby-debug.' + Process.pid.to_s, 'a'); $stdout.sync = true")
|
11
|
+
end
|
12
|
+
|
13
|
+
define restore_stdout
|
14
|
+
call (VALUE) rb_eval_string("$stdout = $_old_stdout")
|
15
|
+
end
|
16
|
+
|
17
|
+
define rb_finish
|
18
|
+
call (VALUE) rb_eval_string_protect("set_trace_func lambda{|event, file, line, id, binding, classname| if /return/ =~ event; sleep 0; set_trace_func(nil) end}",(int*)0)
|
19
|
+
tbreak rb_f_sleep
|
20
|
+
cont
|
21
|
+
end
|
22
|
+
|
23
|
+
define rb_object_counts
|
24
|
+
call (VALUE) rb_eval_string_protect("counts = Hash.new{|h,k| h[k] = 0}; ObjectSpace.each_object{|o| counts[o.class] += 1}; counts.sort_by{|k,c| c}.reverse.each{|k,c| puts '%7d %s' % [c, k] } ",(int*)0)
|
25
|
+
end
|
26
|
+
|
27
|
+
define rb_locals
|
28
|
+
eval "local_variables.map{|x| puts '%s = %s' % [x, eval(x)]}; nil"
|
29
|
+
end
|
30
|
+
|
31
|
+
define rp
|
32
|
+
if ($arg0 & 0x1)
|
33
|
+
echo T_FIXNUM\n
|
34
|
+
print (long)$arg0 >> 1
|
35
|
+
else
|
36
|
+
if ($arg0 == 0)
|
37
|
+
echo T_FALSE\n
|
38
|
+
else
|
39
|
+
if ($arg0 == 2)
|
40
|
+
echo T_TRUE\n
|
41
|
+
else
|
42
|
+
if ($arg0 == 4)
|
43
|
+
echo T_NIL\n
|
44
|
+
else
|
45
|
+
if ($arg0 == 6)
|
46
|
+
echo T_UNDEF\n
|
47
|
+
else
|
48
|
+
if (($arg0 & 0xff) == 0x0e)
|
49
|
+
echo T_SYMBOL\n
|
50
|
+
output $arg0 >> 8
|
51
|
+
echo \n
|
52
|
+
call (const char *) rb_id2name($arg0 >> 8)
|
53
|
+
else
|
54
|
+
set $rbasic = (struct RBasic*)$arg0
|
55
|
+
# output $rbasic
|
56
|
+
# echo \ =\
|
57
|
+
# output *$rbasic
|
58
|
+
# echo \n
|
59
|
+
set $flags = (*$rbasic).flags & 0x3f
|
60
|
+
if ($flags == 0x01)
|
61
|
+
echo T_NIL\n
|
62
|
+
echo impossible\n
|
63
|
+
else
|
64
|
+
if ($flags == 0x02)
|
65
|
+
echo T_OBJECT\n
|
66
|
+
print *(struct RObject*)$rbasic
|
67
|
+
else
|
68
|
+
if ($flags == 0x03)
|
69
|
+
echo T_CLASS\n
|
70
|
+
# rb_classname($arg0)
|
71
|
+
else
|
72
|
+
if ($flags == 0x04)
|
73
|
+
echo T_ICLASS\n
|
74
|
+
print *(struct RClass*)$rbasic
|
75
|
+
else
|
76
|
+
if ($flags == 0x05)
|
77
|
+
echo T_MODULE\n
|
78
|
+
print *(struct RClass*)$rbasic
|
79
|
+
else
|
80
|
+
if ($flags == 0x06)
|
81
|
+
echo T_FLOAT\n
|
82
|
+
print *(struct RFloat*)$rbasic
|
83
|
+
else
|
84
|
+
if ($flags == 0x07)
|
85
|
+
echo T_STRING\n
|
86
|
+
print *(struct RString*)$rbasic
|
87
|
+
else
|
88
|
+
if ($flags == 0x08)
|
89
|
+
echo T_REGEXP\n
|
90
|
+
print *(struct RRegexp*)$rbasic
|
91
|
+
else
|
92
|
+
if ($flags == 0x09)
|
93
|
+
echo T_ARRAY\n
|
94
|
+
print *(struct RArray*)$rbasic
|
95
|
+
else
|
96
|
+
if ($flags == 0x0a)
|
97
|
+
echo T_FIXNUM\n
|
98
|
+
echo impossible\n
|
99
|
+
else
|
100
|
+
if ($flags == 0x0b)
|
101
|
+
echo T_HASH\n
|
102
|
+
print *(struct RHash*)$rbasic
|
103
|
+
else
|
104
|
+
if ($flags == 0x0c)
|
105
|
+
echo T_STRUCT\n
|
106
|
+
print *(struct RStruct*)$rbasic
|
107
|
+
else
|
108
|
+
if ($flags == 0x0d)
|
109
|
+
echo T_BIGNUM\n
|
110
|
+
print *(struct RBignum*)$rbasic
|
111
|
+
else
|
112
|
+
if ($flags == 0x0e)
|
113
|
+
echo T_FILE\n
|
114
|
+
print *(struct RFile*)$rbasic
|
115
|
+
else
|
116
|
+
if ($flags == 0x20)
|
117
|
+
echo T_TRUE\n
|
118
|
+
echo impossible\n
|
119
|
+
else
|
120
|
+
if ($flags == 0x21)
|
121
|
+
echo T_FALSE\n
|
122
|
+
echo impossible\n
|
123
|
+
else
|
124
|
+
if ($flags == 0x22)
|
125
|
+
echo T_DATA\n
|
126
|
+
print *(struct RData*)$rbasic
|
127
|
+
else
|
128
|
+
if ($flags == 0x23)
|
129
|
+
echo T_MATCH\n
|
130
|
+
print *(struct RMatch*)$rbasic
|
131
|
+
else
|
132
|
+
if ($flags == 0x24)
|
133
|
+
echo T_SYMBOL\n
|
134
|
+
echo impossible\n
|
135
|
+
else
|
136
|
+
if ($flags == 0x3c)
|
137
|
+
echo T_UNDEF\n
|
138
|
+
echo impossible\n
|
139
|
+
else
|
140
|
+
if ($flags == 0x3d)
|
141
|
+
echo T_VARMAP\n
|
142
|
+
else
|
143
|
+
if ($flags == 0x3e)
|
144
|
+
echo T_SCOPE\n
|
145
|
+
else
|
146
|
+
if ($flags == 0x3f)
|
147
|
+
echo T_NODE\n
|
148
|
+
print (NODE*)$arg0
|
149
|
+
else
|
150
|
+
echo Unknown\n
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
160
|
+
end
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
169
|
+
end
|
170
|
+
end
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
end
|
176
|
+
end
|
177
|
+
end
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
182
|
+
document rp
|
183
|
+
ruby���Ȥ߹��ߥ��֥������Ȥ�ɽ������
|
184
|
+
end
|
185
|
+
|
186
|
+
define nd_type
|
187
|
+
print nodetype($arg0)
|
188
|
+
end
|
189
|
+
document nd_type
|
190
|
+
ruby node �η���ɽ��
|
191
|
+
end
|
192
|
+
|
193
|
+
define nd_file
|
194
|
+
print ((NODE*)$arg0)->nd_file
|
195
|
+
end
|
196
|
+
document nd_file
|
197
|
+
node �Υ������ե�����̾��ɽ��
|
198
|
+
end
|
199
|
+
|
200
|
+
define nd_line
|
201
|
+
print nodeline($arg0)
|
202
|
+
end
|
203
|
+
document nd_line
|
204
|
+
node �ι��ֹ��ɽ��
|
205
|
+
end
|
206
|
+
|
207
|
+
# ruby node �Υ��Ф�ɽ��
|
208
|
+
|
209
|
+
define nd_head
|
210
|
+
print "u1.node"
|
211
|
+
what $arg0.u1.node
|
212
|
+
p $arg0.u1.node
|
213
|
+
end
|
214
|
+
|
215
|
+
define nd_alen
|
216
|
+
print "u2.argc"
|
217
|
+
what $arg0.u2.argc
|
218
|
+
p $arg0.u2.argc
|
219
|
+
end
|
220
|
+
|
221
|
+
define nd_next
|
222
|
+
print "u3.node"
|
223
|
+
what $arg0.u3.node
|
224
|
+
p $arg0.u3.node
|
225
|
+
end
|
226
|
+
|
227
|
+
|
228
|
+
define nd_cond
|
229
|
+
print "u1.node"
|
230
|
+
what $arg0.u1.node
|
231
|
+
p $arg0.u1.node
|
232
|
+
end
|
233
|
+
|
234
|
+
define nd_body
|
235
|
+
print "u2.node"
|
236
|
+
what $arg0.u2.node
|
237
|
+
p $arg0.u2.node
|
238
|
+
end
|
239
|
+
|
240
|
+
define nd_else
|
241
|
+
print "u3.node"
|
242
|
+
what $arg0.u3.node
|
243
|
+
p $arg0.u3.node
|
244
|
+
end
|
245
|
+
|
246
|
+
|
247
|
+
define nd_orig
|
248
|
+
print "u3.value"
|
249
|
+
what $arg0.u3.value
|
250
|
+
p $arg0.u3.value
|
251
|
+
end
|
252
|
+
|
253
|
+
|
254
|
+
define nd_resq
|
255
|
+
print "u2.node"
|
256
|
+
what $arg0.u2.node
|
257
|
+
p $arg0.u2.node
|
258
|
+
end
|
259
|
+
|
260
|
+
define nd_ensr
|
261
|
+
print "u3.node"
|
262
|
+
what $arg0.u3.node
|
263
|
+
p $arg0.u3.node
|
264
|
+
end
|
265
|
+
|
266
|
+
|
267
|
+
define nd_1st
|
268
|
+
print "u1.node"
|
269
|
+
what $arg0.u1.node
|
270
|
+
p $arg0.u1.node
|
271
|
+
end
|
272
|
+
|
273
|
+
define nd_2nd
|
274
|
+
print "u2.node"
|
275
|
+
what $arg0.u2.node
|
276
|
+
p $arg0.u2.node
|
277
|
+
end
|
278
|
+
|
279
|
+
|
280
|
+
define nd_stts
|
281
|
+
print "u1.node"
|
282
|
+
what $arg0.u1.node
|
283
|
+
p $arg0.u1.node
|
284
|
+
end
|
285
|
+
|
286
|
+
|
287
|
+
define nd_entry
|
288
|
+
print "u3.entry"
|
289
|
+
what $arg0.u3.entry
|
290
|
+
p $arg0.u3.entry
|
291
|
+
end
|
292
|
+
|
293
|
+
define nd_vid
|
294
|
+
print "u1.id"
|
295
|
+
what $arg0.u1.id
|
296
|
+
p $arg0.u1.id
|
297
|
+
end
|
298
|
+
|
299
|
+
define nd_cflag
|
300
|
+
print "u2.id"
|
301
|
+
what $arg0.u2.id
|
302
|
+
p $arg0.u2.id
|
303
|
+
end
|
304
|
+
|
305
|
+
define nd_cval
|
306
|
+
print "u3.value"
|
307
|
+
what $arg0.u3.value
|
308
|
+
p $arg0.u3.value
|
309
|
+
end
|
310
|
+
|
311
|
+
|
312
|
+
define nd_cnt
|
313
|
+
print "u3.cnt"
|
314
|
+
what $arg0.u3.cnt
|
315
|
+
p $arg0.u3.cnt
|
316
|
+
end
|
317
|
+
|
318
|
+
define nd_tbl
|
319
|
+
print "u1.tbl"
|
320
|
+
what $arg0.u1.tbl
|
321
|
+
p $arg0.u1.tbl
|
322
|
+
end
|
323
|
+
|
324
|
+
|
325
|
+
define nd_var
|
326
|
+
print "u1.node"
|
327
|
+
what $arg0.u1.node
|
328
|
+
p $arg0.u1.node
|
329
|
+
end
|
330
|
+
|
331
|
+
define nd_ibdy
|
332
|
+
print "u2.node"
|
333
|
+
what $arg0.u2.node
|
334
|
+
p $arg0.u2.node
|
335
|
+
end
|
336
|
+
|
337
|
+
define nd_iter
|
338
|
+
print "u3.node"
|
339
|
+
what $arg0.u3.node
|
340
|
+
p $arg0.u3.node
|
341
|
+
end
|
342
|
+
|
343
|
+
|
344
|
+
define nd_value
|
345
|
+
print "u2.node"
|
346
|
+
what $arg0.u2.node
|
347
|
+
p $arg0.u2.node
|
348
|
+
end
|
349
|
+
|
350
|
+
define nd_aid
|
351
|
+
print "u3.id"
|
352
|
+
what $arg0.u3.id
|
353
|
+
p $arg0.u3.id
|
354
|
+
end
|
355
|
+
|
356
|
+
|
357
|
+
define nd_lit
|
358
|
+
print "u1.value"
|
359
|
+
what $arg0.u1.value
|
360
|
+
p $arg0.u1.value
|
361
|
+
end
|
362
|
+
|
363
|
+
|
364
|
+
define nd_frml
|
365
|
+
print "u1.node"
|
366
|
+
what $arg0.u1.node
|
367
|
+
p $arg0.u1.node
|
368
|
+
end
|
369
|
+
|
370
|
+
define nd_rest
|
371
|
+
print "u2.argc"
|
372
|
+
what $arg0.u2.argc
|
373
|
+
p $arg0.u2.argc
|
374
|
+
end
|
375
|
+
|
376
|
+
define nd_opt
|
377
|
+
print "u1.node"
|
378
|
+
what $arg0.u1.node
|
379
|
+
p $arg0.u1.node
|
380
|
+
end
|
381
|
+
|
382
|
+
|
383
|
+
define nd_recv
|
384
|
+
print "u1.node"
|
385
|
+
what $arg0.u1.node
|
386
|
+
p $arg0.u1.node
|
387
|
+
end
|
388
|
+
|
389
|
+
define nd_mid
|
390
|
+
print "u2.id"
|
391
|
+
what $arg0.u2.id
|
392
|
+
p $arg0.u2.id
|
393
|
+
end
|
394
|
+
|
395
|
+
define nd_args
|
396
|
+
print "u3.node"
|
397
|
+
what $arg0.u3.node
|
398
|
+
p $arg0.u3.node
|
399
|
+
end
|
400
|
+
|
401
|
+
|
402
|
+
define nd_noex
|
403
|
+
print "u1.id"
|
404
|
+
what $arg0.u1.id
|
405
|
+
p $arg0.u1.id
|
406
|
+
end
|
407
|
+
|
408
|
+
define nd_defn
|
409
|
+
print "u3.node"
|
410
|
+
what $arg0.u3.node
|
411
|
+
p $arg0.u3.node
|
412
|
+
end
|
413
|
+
|
414
|
+
|
415
|
+
define nd_old
|
416
|
+
print "u1.id"
|
417
|
+
what $arg0.u1.id
|
418
|
+
p $arg0.u1.id
|
419
|
+
end
|
420
|
+
|
421
|
+
define nd_new
|
422
|
+
print "u2.id"
|
423
|
+
what $arg0.u2.id
|
424
|
+
p $arg0.u2.id
|
425
|
+
end
|
426
|
+
|
427
|
+
|
428
|
+
define nd_cfnc
|
429
|
+
print "u1.cfunc"
|
430
|
+
what $arg0.u1.cfunc
|
431
|
+
p $arg0.u1.cfunc
|
432
|
+
end
|
433
|
+
|
434
|
+
define nd_argc
|
435
|
+
print "u2.argc"
|
436
|
+
what $arg0.u2.argc
|
437
|
+
p $arg0.u2.argc
|
438
|
+
end
|
439
|
+
|
440
|
+
|
441
|
+
define nd_cname
|
442
|
+
print "u1.id"
|
443
|
+
what $arg0.u1.id
|
444
|
+
p $arg0.u1.id
|
445
|
+
end
|
446
|
+
|
447
|
+
define nd_super
|
448
|
+
print "u3.node"
|
449
|
+
what $arg0.u3.node
|
450
|
+
p $arg0.u3.node
|
451
|
+
end
|
452
|
+
|
453
|
+
|
454
|
+
define nd_modl
|
455
|
+
print "u1.id"
|
456
|
+
what $arg0.u1.id
|
457
|
+
p $arg0.u1.id
|
458
|
+
end
|
459
|
+
|
460
|
+
define nd_clss
|
461
|
+
print "u1.value"
|
462
|
+
what $arg0.u1.value
|
463
|
+
p $arg0.u1.value
|
464
|
+
end
|
465
|
+
|
466
|
+
|
467
|
+
define nd_beg
|
468
|
+
print "u1.node"
|
469
|
+
what $arg0.u1.node
|
470
|
+
p $arg0.u1.node
|
471
|
+
end
|
472
|
+
|
473
|
+
define nd_end
|
474
|
+
print "u2.node"
|
475
|
+
what $arg0.u2.node
|
476
|
+
p $arg0.u2.node
|
477
|
+
end
|
478
|
+
|
479
|
+
define nd_state
|
480
|
+
print "u3.state"
|
481
|
+
what $arg0.u3.state
|
482
|
+
p $arg0.u3.state
|
483
|
+
end
|
484
|
+
|
485
|
+
define nd_rval
|
486
|
+
print "u2.value"
|
487
|
+
what $arg0.u2.value
|
488
|
+
p $arg0.u2.value
|
489
|
+
end
|
490
|
+
|
491
|
+
|
492
|
+
define nd_nth
|
493
|
+
print "u2.argc"
|
494
|
+
what $arg0.u2.argc
|
495
|
+
p $arg0.u2.argc
|
496
|
+
end
|
497
|
+
|
498
|
+
|
499
|
+
define nd_tag
|
500
|
+
print "u1.id"
|
501
|
+
what $arg0.u1.id
|
502
|
+
p $arg0.u1.id
|
503
|
+
end
|
504
|
+
|
505
|
+
define nd_tval
|
506
|
+
print "u2.value"
|
507
|
+
what $arg0.u2.value
|
508
|
+
p $arg0.u2.value
|
509
|
+
end
|
510
|
+
|
511
|
+
define rb_p
|
512
|
+
call (void) rb_p($arg0)
|
513
|
+
end
|
514
|
+
|
515
|
+
define rb_id2name
|
516
|
+
call (const char *) rb_id2name($arg0)
|
517
|
+
end
|
518
|
+
|
519
|
+
define rb_classname
|
520
|
+
call (VALUE) classname($arg0)
|
521
|
+
rb_p $
|
522
|
+
p *(struct RClass*)$arg0
|
523
|
+
end
|
524
|
+
|
525
|
+
define rb_backtrace
|
526
|
+
call (void) rb_backtrace()
|
527
|
+
end
|
528
|
+
|