-send_gdb "help maint check-symtabs\n"
-gdb_expect {
- -re "Check consistency of psymtabs and symtabs\\..*$gdb_prompt $"\
- { pass "help maint check-symtabs" }
- -re ".*$gdb_prompt $" { fail "help maint check-symtabs" }
- timeout { fail "(timeout) help maint check-symtabs" }
- }
-
-send_gdb "help maint space\n"
-gdb_expect {
- -re "Set the display of space usage\\.\r\nIf nonzero, will cause the execution space for each command to be\r\ndisplayed, following the command's output\\..*$gdb_prompt $"\
- { pass "help maint space" }
- -re ".*$gdb_prompt $" { fail "help maint space" }
- timeout { fail "(timeout) help maint space" }
- }
-
-send_gdb "help maint time\n"
-gdb_expect {
- -re "Set the display of time usage\\.\r\nIf nonzero, will cause the execution time for each command to be\r\ndisplayed, following the command's output\\..*$gdb_prompt $"\
- { pass "help maint time" }
- -re ".*$gdb_prompt $" { fail "help maint time" }
- timeout { fail "(timeout) help maint time" }
- }
-
-send_gdb "help maint demangle\n"
-gdb_expect {
- -re "Demangle a C\\+\\+/ObjC mangled name\\.\r\nCall internal GDB demangler routine to demangle a C\\+\\+ link name\r\nand prints the result\\..*$gdb_prompt $"\
- { pass "help maint demangle" }
- -re ".*$gdb_prompt $" { fail "help maint demangle" }
- timeout { fail "(timeout) help maint demangle" }
- }
-
-send_gdb "help maint dump-me\n"
-gdb_expect {
- -re "Get fatal error; make debugger dump its core\\.\r\nGDB sets its handling of SIGQUIT back to SIG_DFL and then sends\r\nitself a SIGQUIT signal\\..*$gdb_prompt $"\
- { pass "help maint dump-me" }
- -re ".*$gdb_prompt $" { fail "help maint dump-me" }
- timeout { fail "(timeout) help maint dump-me" }
- }
-
-send_gdb "help maint internal-error\n"
-gdb_expect {
- -re "Give GDB an internal error\\.\r\nCause GDB to behave as if an internal error was detected\\..*$gdb_prompt $"\
- { pass "help maint internal-error" }
- -re ".*$gdb_prompt $" { fail "help maint internal-error" }
- timeout { fail "(timeout) help maint internal-error" }
- }
-
-send_gdb "help maint internal-warning\n"
-gdb_expect {
- -re "Give GDB an internal warning\\.\r\nCause GDB to behave as if an internal warning was reported\\..*$gdb_prompt $"\
- { pass "help maint internal-warning" }
- -re ".*$gdb_prompt $" { fail "help maint internal-warning" }
- timeout { fail "(timeout) help maint internal-warning" }
- }
-
-send_gdb "help maint print statistics\n"
-gdb_expect {
- -re "Print statistics about internal gdb state\\..*$gdb_prompt $"\
- { pass "help maint print statistics" }
- -re ".*$gdb_prompt $" { fail "help maint print statistics" }
- timeout { fail "(timeout) help maint print statistics" }
- }
-
-gdb_test "help maint print dummy-frames" \
- "Print the contents of the internal dummy-frame stack."
-
-send_gdb "help maint print objfiles\n"
-gdb_expect {
- -re "Print dump of current object file definitions\\..*$gdb_prompt $"\
- { pass "help maint print objfiles" }
- -re ".*$gdb_prompt $" { fail "help maint print objfiles" }
- timeout { fail "(timeout) help maint print objfiles" }
- }
-
-send_gdb "help maint print psymbols\n"
-gdb_expect {
- -re "Print dump of current partial symbol definitions\\.\r\nEntries in the partial symbol table are dumped to file OUTFILE\\.\r\nIf a SOURCE file is specified, dump only that file's partial symbols\\..*$gdb_prompt $"\
- { pass "help maint print psymbols" }
- -re ".*$gdb_prompt $" { fail "help maint print psymbols" }
- timeout { fail "(timeout) help maint print psymbols" }
- }
-
-send_gdb "help maint print msymbols\n"
-gdb_expect {
- -re "Print dump of current minimal symbol definitions\\.\r\nEntries in the minimal symbol table are dumped to file OUTFILE\\.\r\nIf a SOURCE file is specified, dump only that file's minimal symbols\\..*$gdb_prompt $"\
- { pass "help maint print msymbols" }
- -re ".*$gdb_prompt $" { fail "help maint print msymbols" }
- timeout { fail "(timeout) help maint print msymbols" }
- }
-
-send_gdb "help maint print symbols\n"
-gdb_expect {
- -re "Print dump of current symbol definitions\\.\r\nEntries in the full symbol table are dumped to file OUTFILE\\.\r\nIf a SOURCE file is specified, dump only that file's symbols\\..*$gdb_prompt $"\
- { pass "help maint print symbols" }
- -re ".*$gdb_prompt $" { fail "help maint print symbols" }
- timeout { fail "(timeout) help maint print symbols" }
- }
-
-
-send_gdb "help maint print type\n"
-gdb_expect {
- -re "Print a type chain for a given symbol\\.\r\nFor each node in a type chain, print the raw data for each member of\r\nthe type structure, and the interpretation of the data\\..*$gdb_prompt $"\
- { pass "help maint print type" }
- -re ".*$gdb_prompt $" { fail "help maint print type" }
- timeout { fail "(timeout) help maint print type" }
- }
-
-if [istarget "hppa*-*-*"] {
- send_gdb "help maint print unwind\n"
- gdb_expect {
- -re "Print unwind table entry at given address\\..*$gdb_prompt $"\
- { pass "help maint print unwind" }
- -re ".*$gdb_prompt $" { fail "help maint print unwind" }
- timeout { fail "(timeout) help maint print unwind" }
- }