11 BASH_SOURCE[0] ./dbg-support.tests
15 debug lineno: 22 fn1 70 ./dbg-support.tests
17 debug lineno: 23 fn1 70 main ./dbg-support.tests
21 ./dbg-support.tests: line 25: caller: foo: invalid number
22 caller: usage: caller [expr]
25 debug lineno: 12 print_return_trap
26 debug lineno: 13 print_return_trap
28 debug lineno: 14 print_return_trap
32 fn2 here. Calling fn1...
40 BASH_SOURCE[0] ./dbg-support.tests
44 debug lineno: 22 fn1 30 ./dbg-support.tests
46 debug lineno: 23 fn1 30 fn2 ./dbg-support.tests
48 debug lineno: 24 fn1 71 main ./dbg-support.tests
50 ./dbg-support.tests: line 25: caller: foo: invalid number
51 caller: usage: caller [expr]
54 debug lineno: 12 print_return_trap
55 debug lineno: 13 print_return_trap
57 debug lineno: 14 print_return_trap
59 debug lineno: 12 print_return_trap
60 debug lineno: 13 print_return_trap
62 debug lineno: 14 print_return_trap
68 BASH_SOURCE[0] ./dbg-support.tests
76 fn3 called from file `./dbg-support.tests' at line 0
83 main called from file `./dbg-support.tests' at line 0
87 debug lineno: 18 source
89 debug lineno: 19 source
90 SOURCED BASH_SOURCE[0] ./dbg-support.sub
91 debug lineno: 20 source
92 debug lineno: 3 sourced_fn
93 debug lineno: 4 sourced_fn
94 debug lineno: 5 sourced_fn
96 debug lineno: 8 sourced_fn
97 debug lineno: 9 sourced_fn
98 debug lineno: 10 sourced_fn
99 debug lineno: 10 sourced_fn
100 debug lineno: 11 sourced_fn
101 debug lineno: 12 sourced_fn
102 debug lineno: 13 sourced_fn
103 FUNCNAME[0]: sourced_fn called from ./dbg-support.sub at line 20
104 debug lineno: 10 sourced_fn
105 debug lineno: 10 sourced_fn
106 debug lineno: 11 sourced_fn
107 debug lineno: 12 sourced_fn
108 debug lineno: 13 sourced_fn
109 FUNCNAME[1]: source called from ./dbg-support.tests at line 46
110 debug lineno: 10 sourced_fn
111 debug lineno: 10 sourced_fn
112 debug lineno: 11 sourced_fn
113 debug lineno: 12 sourced_fn
114 debug lineno: 13 sourced_fn
115 FUNCNAME[2]: fn3 called from ./dbg-support.tests at line 72
116 debug lineno: 10 sourced_fn
117 debug lineno: 10 sourced_fn
118 debug lineno: 11 sourced_fn
119 debug lineno: 12 sourced_fn
120 debug lineno: 12 sourced_fn
121 debug lineno: 13 sourced_fn
122 FUNCNAME[3]: main called from ./dbg-support.tests at line 0
123 debug lineno: 10 sourced_fn
124 debug lineno: 10 sourced_fn
125 debug lineno: 3 sourced_fn
126 debug lineno: 12 print_return_trap
127 debug lineno: 13 print_return_trap
128 return lineno: 3 sourced_fn
129 debug lineno: 14 print_return_trap
131 debug lineno: 12 print_return_trap
132 debug lineno: 13 print_return_trap
133 return lineno: 46 fn3
134 debug lineno: 14 print_return_trap
136 debug lineno: 12 print_return_trap
137 debug lineno: 13 print_return_trap
138 return lineno: 33 fn3
139 debug lineno: 14 print_return_trap
140 debug lineno: 73 main
141 debug lineno: 18 source
143 debug lineno: 19 source
144 SOURCED BASH_SOURCE[0] ./dbg-support.sub
145 debug lineno: 20 source
146 debug lineno: 3 sourced_fn
147 debug lineno: 4 sourced_fn
148 debug lineno: 5 sourced_fn
150 debug lineno: 8 sourced_fn
151 debug lineno: 9 sourced_fn
152 debug lineno: 10 sourced_fn
153 debug lineno: 10 sourced_fn
154 debug lineno: 11 sourced_fn
155 debug lineno: 12 sourced_fn
156 debug lineno: 13 sourced_fn
157 FUNCNAME[0]: sourced_fn called from ./dbg-support.sub at line 20
158 debug lineno: 10 sourced_fn
159 debug lineno: 10 sourced_fn
160 debug lineno: 11 sourced_fn
161 debug lineno: 12 sourced_fn
162 debug lineno: 13 sourced_fn
163 FUNCNAME[1]: source called from ./dbg-support.tests at line 73
164 debug lineno: 10 sourced_fn
165 debug lineno: 10 sourced_fn
166 debug lineno: 11 sourced_fn
167 debug lineno: 12 sourced_fn
168 debug lineno: 12 sourced_fn
169 debug lineno: 13 sourced_fn
170 FUNCNAME[2]: main called from ./dbg-support.tests at line 0
171 debug lineno: 10 sourced_fn
172 debug lineno: 10 sourced_fn
173 debug lineno: 3 sourced_fn
174 debug lineno: 12 print_return_trap
175 debug lineno: 13 print_return_trap
176 return lineno: 3 sourced_fn
177 debug lineno: 14 print_return_trap
178 debug lineno: 73 main
179 debug lineno: 12 print_return_trap
180 debug lineno: 13 print_return_trap
181 return lineno: 73 main
182 debug lineno: 14 print_return_trap
183 debug lineno: 76 main
184 debug lineno: 79 main
187 BASH_SOURCE[0] ./dbg-support.tests
189 79 ./dbg-support.tests
190 79 main ./dbg-support.tests
192 ./dbg-support.tests: line 25: caller: foo: invalid number
193 caller: usage: caller [expr]
195 debug lineno: 80 main
196 fn2 here. Calling fn1...
199 BASH_SOURCE[0] ./dbg-support.tests
201 30 ./dbg-support.tests
202 30 fn2 ./dbg-support.tests
203 80 main ./dbg-support.tests
204 ./dbg-support.tests: line 25: caller: foo: invalid number
205 caller: usage: caller [expr]
207 debug lineno: 81 main
209 BASH_SOURCE[0] ./dbg-support.tests
210 fn3 called from file `./dbg-support.tests' at line 0
211 main called from file `./dbg-support.tests' at line 0
213 SOURCED BASH_SOURCE[0] ./dbg-support.sub
215 FUNCNAME[0]: sourced_fn called from ./dbg-support.sub at line 20
216 FUNCNAME[1]: source called from ./dbg-support.tests at line 46
217 FUNCNAME[2]: fn3 called from ./dbg-support.tests at line 81
218 FUNCNAME[3]: main called from ./dbg-support.tests at line 0
219 debug lineno: 82 main
220 fn4 here. Calling fn3...
222 BASH_SOURCE[0] ./dbg-support.tests
223 fn3 called from file `./dbg-support.tests' at line 82
224 fn4 called from file `./dbg-support.tests' at line 0
225 main called from file `./dbg-support.tests' at line 0
227 SOURCED BASH_SOURCE[0] ./dbg-support.sub
229 FUNCNAME[0]: sourced_fn called from ./dbg-support.sub at line 20
230 FUNCNAME[1]: source called from ./dbg-support.tests at line 46
231 FUNCNAME[2]: fn3 called from ./dbg-support.tests at line 51
232 FUNCNAME[3]: fn4 called from ./dbg-support.tests at line 82
233 FUNCNAME[4]: main called from ./dbg-support.tests at line 0
234 debug lineno: 83 main
236 SOURCED BASH_SOURCE[0] ./dbg-support.sub
238 FUNCNAME[0]: sourced_fn called from ./dbg-support.sub at line 20
239 FUNCNAME[1]: source called from ./dbg-support.tests at line 83
240 FUNCNAME[2]: main called from ./dbg-support.tests at line 0
241 return lineno: 83 main
242 debug lineno: 86 main
243 debug lineno: 89 main
244 debug lineno: 18 source
246 debug lineno: 19 source
247 SOURCED BASH_SOURCE[0] ./dbg-support.sub
248 debug lineno: 20 source
249 debug lineno: 3 sourced_fn
250 debug lineno: 4 sourced_fn
251 debug lineno: 5 sourced_fn
253 debug lineno: 8 sourced_fn
254 debug lineno: 9 sourced_fn
255 debug lineno: 10 sourced_fn
256 debug lineno: 10 sourced_fn
257 debug lineno: 11 sourced_fn
258 debug lineno: 12 sourced_fn
259 debug lineno: 13 sourced_fn
260 FUNCNAME[0]: sourced_fn called from ./dbg-support.sub at line 20
261 debug lineno: 10 sourced_fn
262 debug lineno: 10 sourced_fn
263 debug lineno: 11 sourced_fn
264 debug lineno: 12 sourced_fn
265 debug lineno: 13 sourced_fn
266 FUNCNAME[1]: source called from ./dbg-support.tests at line 89
267 debug lineno: 10 sourced_fn
268 debug lineno: 10 sourced_fn
269 debug lineno: 11 sourced_fn
270 debug lineno: 12 sourced_fn
271 debug lineno: 12 sourced_fn
272 debug lineno: 13 sourced_fn
273 FUNCNAME[2]: main called from ./dbg-support.tests at line 0
274 debug lineno: 10 sourced_fn
275 debug lineno: 10 sourced_fn
276 debug lineno: 3 sourced_fn
277 debug lineno: 12 print_return_trap
278 debug lineno: 13 print_return_trap
279 return lineno: 3 sourced_fn
280 debug lineno: 14 print_return_trap
281 debug lineno: 89 main
282 debug lineno: 12 print_return_trap
283 debug lineno: 13 print_return_trap
284 return lineno: 89 main
285 debug lineno: 14 print_return_trap
286 debug lineno: 90 main
287 debug lineno: 93 main
288 debug lineno: 93 main
289 debug lineno: 94 main
290 debug lineno: 97 main
291 debug lineno: 93 main
292 debug lineno: 93 main
293 debug lineno: 94 main
294 debug lineno: 97 main
295 debug lineno: 93 main
296 debug lineno: 93 main
297 debug lineno: 94 main
298 debug lineno: 95 main
300 debug lineno: 97 main
301 debug lineno: 93 main
302 debug lineno: 93 main
303 debug lineno: 103 main
304 SOURCED FN LINENO 5 FUNCNAME[0]: sourced_fn called from ./dbg-support.tests at line 103 FUNCNAME[1]: main called from ./dbg-support.tests at line 0
305 debug lineno: 104 main
306 SOURCED FN LINENO 5 FUNCNAME[0]: sourced_fn called from ./dbg-support.tests at line 104 FUNCNAME[1]: main called from ./dbg-support.tests at line 0
307 debug lineno: 105 main
308 debug lineno: 106 main
310 FUNCNAME[0]: sourced_fn called from ./dbg-support.tests at line 106
311 FUNCNAME[1]: main called from ./dbg-support.tests at line 0
312 debug lineno: 110 main
313 debug lineno: 111 main
314 debug lineno: 3 sourced_fn
315 debug lineno: 4 sourced_fn
316 debug lineno: 5 sourced_fn
318 debug lineno: 8 sourced_fn
319 debug lineno: 9 sourced_fn
320 debug lineno: 10 sourced_fn
321 debug lineno: 10 sourced_fn
322 debug lineno: 11 sourced_fn
323 debug lineno: 12 sourced_fn
324 debug lineno: 13 sourced_fn
325 FUNCNAME[0]: sourced_fn called from ./dbg-support.tests at line 111
326 debug lineno: 10 sourced_fn
327 debug lineno: 10 sourced_fn
328 debug lineno: 11 sourced_fn
329 debug lineno: 12 sourced_fn
330 debug lineno: 12 sourced_fn
331 debug lineno: 13 sourced_fn
332 FUNCNAME[1]: main called from ./dbg-support.tests at line 0
333 debug lineno: 10 sourced_fn
334 debug lineno: 10 sourced_fn
335 debug lineno: 3 sourced_fn
336 debug lineno: 12 print_return_trap
337 debug lineno: 13 print_return_trap
338 return lineno: 3 sourced_fn
339 debug lineno: 14 print_return_trap
340 debug lineno: 114 main
341 debug lineno: 119 main
342 debug lineno: 123 main
344 debug lineno: 131 main
345 debug lineno: 132 main
346 debug lineno: 133 main
347 debug lineno: 132 main
348 debug lineno: 133 main
349 debug lineno: 131 main
350 debug lineno: 132 main
351 debug lineno: 133 main
352 debug lineno: 132 main
353 debug lineno: 133 main
354 debug lineno: 137 main
358 f3: calling callstack
366 FUNCNAME stack: f3 f2 f1 main
367 26 f2 ./dbg-support3.sub