]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.base/maint.exp
Automatic Copyright Year update after running gdb/copyright.py
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / maint.exp
1 # Copyright 1998-2022 Free Software Foundation, Inc.
2
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
16 # This file was written by Elena Zannoni (ezannoni@cygnus.com)
17
18 # this file tests maintenance commands and help on those.
19
20 # source file used is break.c
21
22
23 #maintenance check-psymtabs -- Check consistency of psymtabs vs symtabs
24 #maintenance check-symtabs -- Check consistency of symtabs
25 #maintenance expand-symtabs -- Expand symtabs matching a file regexp
26 #maintenance set -- Set GDB internal variables used by the GDB maintainer
27 #maintenance show -- Show GDB internal variables used by the GDB maintainer
28 #maintenance dump-me -- Get fatal error; make debugger dump its core
29 #maintenance print -- Maintenance command for printing GDB internal state
30 #maintenance info -- Commands for showing internal info about the program being debugged
31 #maintenance internal-error -- Give GDB an internal error.
32 #
33 #maintenance print dummy-frames -- Print the dummy frame stack
34 #maintenance print statistics -- Print statistics about internal gdb state
35 #maintenance print objfiles -- Print dump of current object file definitions
36 #maintenance print psymbols -- Print dump of current partial symbol definitions
37 #maintenance print msymbols -- Print dump of current minimal symbol definitions
38 #maintenance print symbols -- Print dump of current symbol definitions
39 #maintenance print type -- Print a type chain for a given symbol
40 #maintenance print unwind -- Print unwind table entry at given address
41 #
42 #
43 #maintenance info breakpoints -- Status of all breakpoints
44 #
45
46
47
48 standard_testfile break.c break1.c
49
50 if {[prepare_for_testing "failed to prepare" $testfile \
51 [list $srcfile $srcfile2] {debug nowarnings}]} {
52 return -1
53 }
54
55 set readnow_p [readnow]
56
57 # The commands we test here produce many lines of output; disable "press
58 # <return> to continue" prompts.
59 gdb_test_no_output "set height 0"
60
61 # Tests that require that no program is running
62
63 gdb_file_cmd ${binfile}
64
65 # Test for a regression where this command would internal-error if the
66 # program wasn't running. If there's a lot of registers then this
67 # might overflow expect's buffers, so process the output line at a
68 # time.
69 set saw_registers 0
70 set saw_headers 0
71 set test "maint print registers"
72 gdb_test_multiple $test $test {
73 -re "\[^\r\n\]+Name\[^\r\n\]+Nr\[^\r\n\]+Rel\[^\r\n\]+Offset\[^\r\n\]+Size\[^\r\n\]+Type\[^\r\n\]+\r\n" {
74 set saw_headers 1
75 exp_continue
76 }
77 -re "^\[^\r\n\]+\[0-9\]+\[^\r\n\]+\[0-9\]+\[^\r\n\]+\[0-9\]+\[^\r\n\]+\[0-9\]+\[^\r\n\]+\r\n" {
78 set saw_registers 1
79 exp_continue
80 }
81 -re "^\\*\[0-9\]+\[^\r\n\]+\r\n" {
82 exp_continue
83 }
84 -re "$gdb_prompt $" {
85 gdb_assert { $saw_registers && $saw_headers } $test
86 }
87 }
88
89 # Test "mt expand-symtabs" here as it's easier to verify before we
90 # run the program.
91 gdb_test_no_output "mt set per on" "mt set per on for expand-symtabs"
92 gdb_test_multiple "mt expand-symtabs $subdir/break\[.\]c$" \
93 "mt expand-symtabs" {
94 -re "#compunits: (1|2) \\(\[+\](0|1|2)\\),.*$gdb_prompt $" {
95 # This should expand at most two primary symtabs.
96 # "Normally" it will not expand any, because the symtab
97 # holding "main" will already have been expanded, but if the
98 # file is compiled with -fdebug-types-section then a second primary
99 # symtab for break.c will be created for any types.
100 pass "$gdb_test_name"
101 }
102 -re "#compunits: ($decimal) \\(\[+\]0\\),.*$gdb_prompt $" {
103 if { $readnow_p } {
104 pass "$gdb_test_name"
105 } else {
106 fail "$gdb_test_name"
107 }
108 }
109 }
110 gdb_test "mt set per off" ".*" "mt set per off for expand-symtabs"
111
112 # Tests that can or should be done with a running program
113
114 gdb_load ${binfile}
115
116 if ![runto_main] then {
117 perror "tests suppressed"
118 }
119
120 # If we're using .gdb_index or .debug_names there will be no psymtabs.
121 set have_gdb_index [ exec_has_index_section ${binfile} ]
122
123 # There also won't be any psymtabs if we read the index from the index cache.
124 # We can detect this by looking if the index-cache is enabled and if the number
125 # of cache misses is 0.
126 set index_cache_misses -1
127 gdb_test_multiple "show index-cache stats" "check index cache stats" {
128 -re ".*Cache misses \\(this session\\): (\\d+)\r\n.*$gdb_prompt $" {
129 set index_cache_misses $expect_out(1,string)
130 }
131 }
132
133 set using_index_cache 0
134 gdb_test_multiple "show index-cache enabled" "check index cache status" {
135 -re ".*is off.\r\n$gdb_prompt $" {
136 set using_index_cache 0
137 }
138 -re ".*is on.\r\n$gdb_prompt $" {
139 set using_index_cache 1
140 }
141 }
142
143 if { $index_cache_misses == 0 && $using_index_cache } {
144 set have_gdb_index 1
145 }
146
147 set have_psyms [expr ! ( $have_gdb_index || $readnow_p )]
148
149 #
150 # this command does not produce any output
151 # unless there is some problem with the symtabs and psymtabs
152 # so that branch will really never be covered in this tests here!!
153 #
154
155 # guo: on linux this command output is huge. for some reason splitting up
156 # the regexp checks works.
157 #
158 send_gdb "maint check-psymtabs\n"
159 gdb_expect {
160 -re "^maint check-psymtabs" {
161 gdb_expect {
162 -re "$gdb_prompt $" {
163 pass "maint check-psymtabs"
164 }
165 timeout { fail "(timeout) maint check-psymtabs" }
166 }
167 }
168 -re ".*$gdb_prompt $" { fail "maint check-psymtabs" }
169 timeout { fail "(timeout) maint check-psymtabs" }
170 }
171
172 # This command does not produce any output unless there is some problem
173 # with the symtabs, so that branch will really never be covered in the
174 # tests here!!
175 gdb_test_no_output "maint check-symtabs"
176
177 # Test per-command stats.
178 gdb_test_no_output "maint set per-command on"
179 set decimal "\[0-9\]+"
180 set time_fmt "${decimal}-${decimal}-${decimal} ${decimal}:${decimal}:${decimal}\\.${decimal}"
181 gdb_test "pwd" \
182 "${time_fmt} - command started\r\n.*\r\n${time_fmt} - command finished\r\nCommand execution time: \[0-9.\]+ \\(cpu\\), \[0-9.\]+ \\(wall\\)\[\r\n\]+Space used: $decimal \\(\\+$decimal for this command\\)\[\r\n\]+#symtabs: $decimal \\(\\+$decimal\\), #compunits: $decimal \\(\\+$decimal\\), #blocks: $decimal \\(\\+$decimal\\)"
183 gdb_test "maint set per-command off" \
184 "${time_fmt} - command started"
185
186 # The timeout value is raised, because printing all the symbols and
187 # statistical information about Cygwin and Windows libraries takes a lot
188 # of time.
189 if [istarget "*-*-cygwin*"] {
190 set oldtimeout $timeout
191 set timeout [expr $timeout + 500]
192 }
193
194 set re \
195 [list \
196 "Statistics for\[^\n\r\]*maint\[^\n\r\]*:" \
197 " Number of \"minimal\" symbols read: $decimal" \
198 " Number of \"full\" symbols read: $decimal" \
199 " Number of \"types\" defined: $decimal" \
200 " Number of symbol tables: $decimal" \
201 " Number of symbol tables with line tables: $decimal" \
202 " Number of symbol tables with blockvectors: $decimal" \
203 "( Number of read CUs: $decimal" \
204 " Number of unread CUs: $decimal" \
205 ")?( Number of \"partial\" symbols read: $decimal" \
206 ")?( Number of psym tables \\(not yet expanded\\): $decimal" \
207 ")?( Total memory used for psymbol cache: $decimal" \
208 ")? Total memory used for objfile obstack: $decimal" \
209 " Total memory used for BFD obstack: $decimal" \
210 " Total memory used for string cache: $decimal" \
211 ""]
212
213 set re [multi_line {*}$re]
214 gdb_test_lines "maint print statistics" "" $re
215
216 # There aren't any ...
217 gdb_test_no_output "maint print dummy-frames"
218
219
220
221 # To avoid timeouts, we avoid expects with many .* patterns that match
222 # many lines. Instead, we keep track of which milestones we've seen
223 # in the output, and stop when we've seen all of them.
224
225 set header 0
226 set psymtabs 0
227 set symtabs 0
228 gdb_test_multiple "maint print objfiles" "" -lbl {
229 -re "\r\nObject file.*maint($EXEEXT)?: Objfile at ${hex}" {
230 set header 1
231 exp_continue
232 }
233 -re "\r\nPsymtabs:\[\r\t \]+" {
234 set psymtabs 1
235 exp_continue
236 }
237 -re "\r\nSymtabs:\[\r\t \]+\n" {
238 set symtabs 1
239 exp_continue
240 }
241 -re -wrap "" {
242 pass $gdb_test_name
243 }
244 }
245
246 proc maint_pass_if {val name} {
247 if $val { pass $name } else { fail $name }
248 }
249
250 maint_pass_if $header "maint print objfiles: header"
251 if { $have_psyms } {
252 maint_pass_if $psymtabs "maint print objfiles: psymtabs"
253 }
254 maint_pass_if $symtabs "maint print objfiles: symtabs"
255
256 if { $have_psyms } {
257 set psymbols_output [standard_output_file psymbols_output]
258 set psymbols_output_re [string_to_regexp $psymbols_output]
259 set test_list [list \
260 "maint print psymbols -source" \
261 "maint print psymbols -source ${srcdir}/${subdir}/${srcfile} $psymbols_output" \
262 "maint print psymbols -pc" \
263 "maint print psymbols -pc main $psymbols_output"]
264 foreach { test_name command } $test_list {
265 send_gdb "$command\n"
266 gdb_expect {
267 -re "^maint print psymbols \[^\n\]*\r\n$gdb_prompt $" {
268 send_gdb "shell ls $psymbols_output\n"
269 gdb_expect {
270 -re "$psymbols_output_re\r\n$gdb_prompt $" {
271 # We want this grep to be as specific as possible,
272 # so it's less likely to match symbol file names in
273 # psymbols_output. Yes, this actually happened;
274 # poor expect got tons of output, and timed out
275 # trying to match it. --- Jim Blandy <jimb@cygnus.com>
276 send_gdb "shell grep 'main.*function' $psymbols_output\n"
277 gdb_expect {
278 -re ".main., function, $hex.*$gdb_prompt $" {
279 pass "$test_name 1"
280 }
281 -re ".*main. .., function, $hex.*$gdb_prompt $" {
282 pass "$test_name 2"
283 }
284 -re ".*$gdb_prompt $" { fail "$test_name" }
285 timeout { fail "$test_name (timeout)" }
286 }
287 gdb_test "shell rm -f $psymbols_output" ".*" \
288 "${test_name}: shell rm -f psymbols_output"
289 }
290 -re ".*$gdb_prompt $" { fail "$test_name" }
291 timeout { fail "$test_name (timeout)" }
292 }
293 }
294 -re ".*$gdb_prompt $" { fail "$test_name" }
295 timeout { fail "$test_name (timeout)" }
296 }
297 }
298 }
299
300
301 set msymbols_output [standard_output_file msymbols_output]
302 set msymbols_output_re [string_to_regexp $msymbols_output]
303 send_gdb "maint print msymbols -objfile ${binfile} $msymbols_output\n"
304 gdb_expect {
305 -re "^maint print msymbols \[^\n\]*\r\n$gdb_prompt $" {
306 send_gdb "shell ls $msymbols_output\n"
307 gdb_expect {
308 -re "$msymbols_output_re\r\n$gdb_prompt $" {
309 gdb_test "shell grep factorial $msymbols_output" \
310 "\\\[ *$decimal\\\] \[tT\]\[ \t\]+$hex \\.?factorial.*" \
311 "maint print msymbols, absolute pathname"
312 gdb_test "shell rm -f $msymbols_output" ".*" \
313 "shell rm -f msymbols_output"
314 }
315 -re ".*$gdb_prompt $" { fail "maint print msymbols" }
316 timeout { fail "maint print msymbols (timeout)" }
317 }
318 }
319 -re ".*$gdb_prompt $" { fail "maint print msymbols" }
320 timeout { fail "maint print msymbols (timeout)" }
321 }
322
323 # Check that maint print msymbols allows relative pathnames
324 set mydir [pwd]
325 gdb_test "cd [standard_output_file {}]" \
326 "Working directory .*\..*" \
327 "cd to objdir"
328
329 gdb_test_multiple "maint print msymbols -objfile ${testfile} msymbols_output2" "maint print msymbols" {
330 -re "^maint print msymbols \[^\n\]*\r\n$gdb_prompt $" {
331 gdb_test_multiple "shell ls msymbols_output2" "maint print msymbols" {
332 -re "msymbols_output2\r\n$gdb_prompt $" {
333 gdb_test "shell grep factorial msymbols_output2" \
334 "\\\[ *$decimal\\\] \[tT\]\[ \t\]+$hex \\.?factorial.*" \
335 "maint print msymbols, relative pathname"
336 gdb_test "shell rm -f msymbols_output2" ".*"
337 }
338 }
339 }
340 }
341 gdb_test "cd ${mydir}" \
342 "Working directory [string_to_regexp ${mydir}]\..*" \
343 "cd to mydir"
344
345
346 # Request symbols for one particular source file so that we don't try to
347 # dump the symbol information for the entire C library - over 500MB nowadays
348 # for GNU libc.
349
350 set symbols_output [standard_output_file symbols_output]
351 set symbols_output_re [string_to_regexp $symbols_output]
352 set test_list [list \
353 "maint print symbols -source" \
354 "maint print symbols -source ${srcdir}/${subdir}/${srcfile} $symbols_output" \
355 "maint print symbols -pc" \
356 "maint print symbols -pc main $symbols_output"]
357 foreach { test_name command } $test_list {
358 send_gdb "$command\n"
359 gdb_expect {
360 -re "^maint print symbols \[^\n\]*\r\n$gdb_prompt $" {
361 send_gdb "shell ls $symbols_output\n"
362 gdb_expect {
363 -re "$symbols_output_re\r\n$gdb_prompt $" {
364 # See comments for `maint print psymbols'.
365 send_gdb "shell grep 'main(.*block' $symbols_output\n"
366 gdb_expect {
367 -re "int main\\(int, char \\*\\*, char \\*\\*\\); block.*$gdb_prompt $" {
368 pass "$test_name"
369 }
370 -re ".*$gdb_prompt $" { fail "$test_name" }
371 timeout { fail "$test_name (timeout)" }
372 }
373 gdb_test "shell rm -f $symbols_output" ".*" \
374 "$test_name: shell rm -f symbols_output"
375 }
376 -re ".*$gdb_prompt $" { fail "$test_name" }
377 timeout { fail "$test_name (timeout)" }
378 }
379 }
380 -re ".*$gdb_prompt $" { fail "$test_name" }
381 timeout { fail "$test_name (timeout)" }
382 }
383 }
384
385 set msg "maint print type"
386 gdb_test_multiple "maint print type argc" $msg {
387 -re "type node $hex\r\nname .int. \\($hex\\)\r\ncode $hex \\(TYPE_CODE_INT\\)\r\nlength \[24\]\r\nobjfile $hex\r\ntarget_type $hex\r\npointer_type $hex\r\nreference_type $hex\r\ntype_chain $hex\r\ninstance_flags $hex\r\nflags\r\nnfields 0 $hex\r\n$gdb_prompt $" {
388 pass $msg
389 }
390 }
391
392 if [istarget "hppa*-*-11*"] {
393 setup_xfail hppa*-*-*11* CLLbs14860
394 gdb_test_multiple "maint print unwind &main" "maint print unwind" {
395 -re ".*unwind_table_entry \\($hex\\):\r\n\tregion_start = $hex <main>\r\n\tregion_end = $hex <main\\+\[0-9\]*>\r\n\tflags = Args_stored Save_RP\r\n\tRegion_description = $hex\r\n\tEntry_FR = $hex\r\n\tEntry_GR = $hex\r\n\tTotal_frame_size = $hex\r\n$gdb_prompt $" {
396 pass "maint print unwind"
397 }
398 -re ".*unwind_table_entry \\($hex\\):\r\n\tregion_start = $hex <main>\r\n\tregion_end = $hex <main\\+\[0-9\]*>\r\n\tflags = Args_stored Save_RP\r\n\tFLD = $hex\r\n\tFLD = $hex\r\n\tFLD = $hex\r\n\tFLD = $hex\r\n$gdb_prompt $" {
399 xfail "maint print unwind"
400 }
401 }
402 }
403
404 set oldtimeout $timeout
405 set timeout [expr $timeout + 300]
406
407 set bp_location6 [gdb_get_line_number "set breakpoint 6 here"]
408
409 gdb_test_multiple "maint info breakpoints" "maint info breakpoints" {
410 -re "Num\[ \t\]+Type\[ \t\]+Disp\[ \t\]+Enb\[ \t\]+Address\[ \t\]+What\r\n1\[ \t\]+breakpoint\[ \t\]+keep\[ \t\]+y\[ \t\]+$hex\[ \t\]+in main at.*break.c:$bp_location6 inf 1\r\n\[ \t\]+breakpoint already hit 1 time\r\n.*$gdb_prompt $" {
411 pass "maint info breakpoints"
412 }
413 -re "Num\[ \t\]+Type\[ \t\]+Disp\[ \t\]+Enb\[ \t\]+Address\[ \t\]+What\r\n1\[ \t\]+breakpoint\[ \t\]+keep\[ \t\]+y\[ \t\]+$hex in main at.*break.c:$bp_location6 sspace 1\r\n\[ \t\]+breakpoint already hit 1 time\r\n-1\[ \t\]+shlib events\[ \t\]+keep\[ \t\]+y\[ \t\]+$hex.*breakpoint already hit.*$gdb_prompt $" {
414 pass "maint info breakpoints (with shlib events)"
415 }
416 }
417
418 gdb_test "maint print" \
419 "List.*unambiguous\\..*" \
420 "maint print w/o args"
421
422 gdb_test "maint info" \
423 "List.*unambiguous\\..*" \
424 "maint info w/o args"
425
426 gdb_test "maint" \
427 "List.*unambiguous\\..*" \
428 "maint w/o args"
429
430 # Test that "main info line-table" w/o a file name shows the symtab for
431 # $srcfile.
432 set saw_srcfile 0
433 gdb_test_multiple "maint info line-table" \
434 "maint info line-table w/o a file name" {
435 -re "symtab: \[^\n\r\]+${srcfile} \\(\\(struct symtab \\*\\) $hex\\)\r\nlinetable: \\(\\(struct linetable \\*\\) $hex\\):\r\nINDEX\[ \t\]+LINE\[ \t\]+ADDRESS\[^\r\n\]*" {
436 set saw_srcfile 1
437 exp_continue
438 }
439 -re "symtab: \[^\n\r\]+ \\(\\(struct symtab \\*\\) $hex\\)\r\nlinetable: \\(\\(struct linetable \\*\\) $hex\\):\r\nINDEX\[ \t\]+LINE\[ \t\]+ADDRESS\[^\r\n\]*" {
440 # Match each symtab to avoid overflowing expect's buffer.
441 exp_continue
442 }
443 -re "symtab: \[^\n\r\]+ \\(\\(struct symtab \\*\\) $hex\\)\r\nlinetable: \\(\\(struct linetable \\*\\) 0x0\\):\r\nNo line table.\r\n" {
444 # For symtabs with no linetable.
445 exp_continue
446 }
447 -re "^$decimal\[ \t\]+$decimal\[ \t\]+$hex\[^\r\n\]*\r\n" {
448 # Line table entries can be long too:
449 #
450 # INDEX LINE ADDRESS
451 # 0 29 0x00000000004006f6
452 # 1 30 0x00000000004006fa
453 # 2 31 0x0000000000400704
454 # 3 42 0x0000000000400706
455 # 4 43 0x0000000000400719
456 # 5 44 0x0000000000400722
457 # 6 45 0x0000000000400740
458 # (...)
459 # 454 129 0x00007ffff7df1d28
460 # 455 END 0x00007ffff7df1d3f
461 #
462 # Match each line to avoid overflowing expect's buffer.
463 exp_continue
464 }
465 -re "^$decimal\[ \t\]+END\[ \t\]+$hex\[^\r\n\]*\r\n" {
466 # Matches an end marker in the above.
467 exp_continue
468 }
469 -re "^\r\n" {
470 # Empty line between tables.
471 exp_continue
472 }
473 -re "^$gdb_prompt $" {
474 gdb_assert $saw_srcfile $gdb_test_name
475 }
476 }
477
478 gdb_test "maint info line-table ${srcfile}" \
479 "symtab: \[^\n\r\]+${srcfile}.*INDEX.*LINE.*ADDRESS.*" \
480 "maint info line-table with filename of current symtab"
481
482 if { ! $readnow_p } {
483 gdb_test_no_output "maint info line-table ${srcfile2}" \
484 [join \
485 "maint info line-table with filename of symtab that is not" \
486 " currently expanded"]
487 }
488
489 gdb_test_no_output "maint expand-symtabs"
490
491 gdb_test "maint info line-table ${srcfile2}" \
492 "symtab: \[^\n\r\]+${srcfile2}.*INDEX.*LINE.*ADDRESS.*" \
493 "maint info line-table with filename of symtab that is not current"
494
495 gdb_test_no_output "maint info line-table xxx.c" \
496 "maint info line-table with invalid filename"
497
498 set timeout $oldtimeout
499
500 # Just check that the DWARF unwinders control flag is visible.
501 gdb_test "maint show dwarf unwinders" \
502 "The DWARF stack unwinders are currently (on|off)\\."
503
504 #============test help on maint commands
505
506 test_prefix_command_help {"maint info" "maintenance info"} {
507 "Commands for showing internal info about the program being debugged\\.\[\r\n\]+"
508 }
509
510 test_prefix_command_help {"maint print" "maintenance print"} {
511 "Maintenance command for printing GDB internal state\\.\[\r\n\]+"
512 }
513
514 test_prefix_command_help {"maint" "maintenance"} {
515 "Commands for use by GDB maintainers\\.\[\r\n\]+"
516 "Includes commands to dump specific internal GDB structures in\[\r\n\]+"
517 "a human readable form, to cause GDB to deliberately dump core, etc\\.\[\r\n\]+"
518 }
519
520 #set oldtimeout $timeout
521 #set timeout [expr $timeout + 300]
522
523 gdb_test_multiple "maint dump-me" "maint dump-me" {
524 -re "Should GDB dump core.*\\(y or n\\) $" {
525 gdb_test "n" ".*" "maint dump-me"
526 }
527 -re "Undefined maintenance command: .*$gdb_prompt $" {
528 # Command 'maint dump-me' is registered on non-win32 host.
529 unsupported "maint dump-me"
530 }
531 }
532
533 send_gdb "maint internal-error\n"
534 gdb_expect {
535 -re "A problem internal to GDB has been detected" {
536 pass "maint internal-error"
537 if [gdb_internal_error_resync] {
538 pass "internal-error resync"
539 } else {
540 fail "internal-error resync"
541 }
542 }
543 -re ".*$gdb_prompt $" {
544 fail "maint internal-error"
545 untested "internal-error resync"
546 }
547 timeout {
548 fail "maint internal-error (timeout)"
549 untested "internal-error resync"
550 }
551 }
552
553 #set timeout $oldtimeout
554
555 # Test that the commands work without an argument. For this test, we
556 # don't need an inferior loaded/running. See PR gdb/21164.
557 gdb_exit
558 gdb_start
559 gdb_test_no_output "maint print symbols"
560 gdb_test_no_output "maint print msymbols"
561 gdb_test_no_output "maint print psymbols"
562
563 gdb_exit
564 return 0