OLD | NEW |
1 # Copyright 1988, 1990-1992, 1994-2003, 2005-2012 Free Software | 1 # Copyright 1988, 1990-1992, 1994-2003, 2005-2012 Free Software |
2 # Foundation, Inc. | 2 # Foundation, Inc. |
3 | 3 |
4 # This program is free software; you can redistribute it and/or modify | 4 # This program is free software; you can redistribute it and/or modify |
5 # it under the terms of the GNU General Public License as published by | 5 # it under the terms of the GNU General Public License as published by |
6 # the Free Software Foundation; either version 3 of the License, or | 6 # the Free Software Foundation; either version 3 of the License, or |
7 # (at your option) any later version. | 7 # (at your option) any later version. |
8 # | 8 # |
9 # This program is distributed in the hope that it will be useful, | 9 # This program is distributed in the hope that it will be useful, |
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 # test append | 33 # test append |
34 gdb_test "append" "\"append\" must be followed by a subcommand\.\[\r\n\]+List of
append subcommands:.*" | 34 gdb_test "append" "\"append\" must be followed by a subcommand\.\[\r\n\]+List of
append subcommands:.*" |
35 gdb_test "append binary" "\"append binary\" must be followed by a subcommand\.\[
\r\n\]+List of append binary subcommands:.*" | 35 gdb_test "append binary" "\"append binary\" must be followed by a subcommand\.\[
\r\n\]+List of append binary subcommands:.*" |
36 gdb_test "append memory" "Missing filename\." | 36 gdb_test "append memory" "Missing filename\." |
37 gdb_test "append value" "Missing filename\." | 37 gdb_test "append value" "Missing filename\." |
38 gdb_test "append binary memory" "Missing filename\." | 38 gdb_test "append binary memory" "Missing filename\." |
39 gdb_test "append binary value" "Missing filename\." | 39 gdb_test "append binary value" "Missing filename\." |
40 | 40 |
41 if !$use_gdb_stub { | 41 if !$use_gdb_stub { |
42 setup_xfail "mips-idt-*" | |
43 gdb_test_multiple "attach" "attach" { | 42 gdb_test_multiple "attach" "attach" { |
44 -re "Argument required .(process-id|program) to attach.*$gdb_prompt $"\ | 43 -re "Argument required .(process-id|program) to attach.*$gdb_prompt $"\ |
45 { pass "attach" } | 44 { pass "attach" } |
46 -re "You can't do that when your target is `None'.*$gdb_prompt $"\ | 45 -re "You can't do that when your target is `None'.*$gdb_prompt $"\ |
47 { pass "attach" } | 46 { pass "attach" } |
48 -re "You can't do that without a process to debug.*$gdb_prompt $"\ | 47 -re "You can't do that without a process to debug.*$gdb_prompt $"\ |
49 { pass "attach" } | 48 { pass "attach" } |
50 -re "Don't know how to attach. Try \"help target\"..*$gdb_prompt $"\ | 49 -re "Don't know how to attach. Try \"help target\"..*$gdb_prompt $"\ |
51 { pass "attach" } | 50 { pass "attach" } |
52 -re "Kill it. .y or n." { | 51 -re "Kill it. .y or n." { |
53 send_gdb "y\n" | 52 send_gdb "y\n" |
54 exp_continue | 53 exp_continue |
55 } | 54 } |
56 } | 55 } |
57 | 56 |
58 gdb_test "break" "No default breakpoint address now." "break" | 57 gdb_test "break" "No default breakpoint address now." "break" |
59 foreach i "b br bre brea" { | 58 foreach i "b br bre brea" { |
60 gdb_test $i "No default breakpoint address now." "break \"$i\" abbreviat
ion" | 59 gdb_test $i "No default breakpoint address now." "break \"$i\" abbreviat
ion" |
61 } | 60 } |
62 | 61 |
63 | 62 |
64 setup_xfail "mips-idt-*" | |
65 gdb_test "backtrace" "No stack." | 63 gdb_test "backtrace" "No stack." |
66 | 64 |
67 # ba and bac are no longer unique command prefixes. So these tests | 65 # ba and bac are no longer unique command prefixes. So these tests |
68 # elict an error from GDB. | 66 # elict an error from GDB. |
69 # GDB needs to be fixed to map unique alias here for ba bac. | 67 # GDB needs to be fixed to map unique alias here for ba bac. |
70 # | 68 # |
71 foreach i "bt ba bac" { | 69 foreach i "bt ba bac" { |
72 setup_xfail "mips-idt-*" | |
73 gdb_test $i "No stack." "backtrace \"$i\" abbreviation" | 70 gdb_test $i "No stack." "backtrace \"$i\" abbreviation" |
74 } | 71 } |
75 } else { | 72 } else { |
76 warning "Skipping backtrace and break tests because of GDB stub." | 73 warning "Skipping backtrace and break tests because of GDB stub." |
77 } | 74 } |
78 | 75 |
79 # This works on the MIPS IDT board, but confuses future tests. | 76 gdb_test "continue" "The program is not being run." "continue" |
80 if ![istarget "mips-idt-*"] then { | 77 gdb_test "c" "The program is not being run." "continue \"c\" abbreviation" |
81 gdb_test "continue" "The program is not being run." "continue" | |
82 gdb_test "c" "The program is not being run." "continue \"c\" abbreviation" | |
83 } | |
84 | 78 |
85 #test call | 79 #test call |
86 gdb_test "call" "The history is empty..*" "call" | 80 gdb_test "call" "The history is empty..*" "call" |
87 | 81 |
88 | 82 |
89 #test catch | 83 #test catch |
90 gdb_test "catch" "Catch requires an event name..*" "catch" | 84 gdb_test "catch" "Catch requires an event name..*" "catch" |
91 | 85 |
92 #test cd | 86 #test cd |
93 gdb_test "cd" "Argument required .new working directory.*" "cd" | 87 gdb_test "cd" "Argument required .new working directory.*" "cd" |
94 | 88 |
95 #test clear | 89 #test clear |
96 gdb_test "clear" "No source file specified..*" "clear" | 90 gdb_test "clear" "No source file specified..*" "clear" |
97 | 91 |
98 #test commands | 92 #test commands |
99 gdb_test "commands" "Argument required .one or more breakpoint numbers...*" "com
mands" | 93 gdb_test "commands" "Argument required .one or more breakpoint numbers...*" "com
mands" |
100 | 94 |
101 #test condition | 95 #test condition |
102 gdb_test "condition" "Argument required .breakpoint number.*" "condition" | 96 gdb_test "condition" "Argument required .breakpoint number.*" "condition" |
103 | 97 |
104 #test core-file | 98 #test core-file |
105 gdb_test "core-file" "No core file now.|GDB can't read core files on this machin
e." "core-file" | 99 gdb_test "core-file" "No core file now." "core-file" |
106 #test delete "d" abbreviation | 100 #test delete "d" abbreviation |
107 gdb_test_no_output "d" "delete \"d\" abbreviation" | 101 gdb_test_no_output "d" "delete \"d\" abbreviation" |
108 #test delete | 102 #test delete |
109 gdb_test_no_output "delete" "delete" | 103 gdb_test_no_output "delete" "delete" |
110 #test define | 104 #test define |
111 gdb_test "define" "Argument required \[(\]name of command to define\[)\]." "defi
ne" | 105 gdb_test "define" "Argument required \[(\]name of command to define\[)\]." "defi
ne" |
112 #test delete breakpoints | 106 #test delete breakpoints |
113 gdb_test_no_output "delete breakpoints" "delete breakpoints" | 107 gdb_test_no_output "delete breakpoints" "delete breakpoints" |
114 #test delete display | 108 #test delete display |
115 # FIXME -- need to dump full output to detailed log | 109 # FIXME -- need to dump full output to detailed log |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 #test info address | 269 #test info address |
276 gdb_test "info address" "Argument required." "info address" | 270 gdb_test "info address" "Argument required." "info address" |
277 #test info all-registers | 271 #test info all-registers |
278 gdb_test "info all-registers" "The program has no registers now." "info all-regi
sters" | 272 gdb_test "info all-registers" "The program has no registers now." "info all-regi
sters" |
279 #test info args | 273 #test info args |
280 gdb_test "info args" "No frame selected." "info args" | 274 gdb_test "info args" "No frame selected." "info args" |
281 #test info bogus-gdb-command | 275 #test info bogus-gdb-command |
282 gdb_test "info bogus-gdb-command" "Undefined info command: \"bogus-gdb-command\"
. Try \"help info\".*" "info bogus-gdb-command" | 276 gdb_test "info bogus-gdb-command" "Undefined info command: \"bogus-gdb-command\"
. Try \"help info\".*" "info bogus-gdb-command" |
283 #test info breakpoints | 277 #test info breakpoints |
284 gdb_test "info breakpoints" "No breakpoints or watchpoints." "info breakpoints" | 278 gdb_test "info breakpoints" "No breakpoints or watchpoints." "info breakpoints" |
285 #test info catch | |
286 gdb_test "info catch" "No frame selected." "info catch" | |
287 #test info copying | 279 #test info copying |
288 # FIXME -- doesn't work worth a shit | 280 # FIXME -- doesn't work worth a shit |
289 #send_gdb "info copying" | 281 #send_gdb "info copying" |
290 # -re "GNU GENERAL PUBLIC LICENSE.*#of preserving the free status of all d
erivatives of our free software and.*#of promoting the sharing and reuse of soft
ware generally."# | 282 # -re "GNU GENERAL PUBLIC LICENSE.*#of preserving the free status of all d
erivatives of our free software and.*#of promoting the sharing and reuse of soft
ware generally."# |
291 gdb_test "info copying" | 283 gdb_test "info copying" |
292 # } | 284 # } |
293 # | 285 # |
294 # | 286 # |
295 #test info display | 287 #test info display |
296 gdb_test "info display" "There are no auto-display expressions now." "info displ
ay" | 288 gdb_test "info display" "There are no auto-display expressions now." "info displ
ay" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 -re "Starting program: .*No executable file specified.*Use the \"file\"
or \"exec-file\" command.*$gdb_prompt $"\ | 428 -re "Starting program: .*No executable file specified.*Use the \"file\"
or \"exec-file\" command.*$gdb_prompt $"\ |
437 { pass "run \"r\" abbreviation" } | 429 { pass "run \"r\" abbreviation" } |
438 -re "Starting program: .*No executable specified, use .target exec.\\..
*$gdb_prompt $"\ | 430 -re "Starting program: .*No executable specified, use .target exec.\\..
*$gdb_prompt $"\ |
439 { pass "run \"r\" abbreviation" } | 431 { pass "run \"r\" abbreviation" } |
440 -re "Starting program: .*No image loaded into target.*$gdb_prompt $"\ | 432 -re "Starting program: .*No image loaded into target.*$gdb_prompt $"\ |
441 { pass "run \"r\" abbreviation" } | 433 { pass "run \"r\" abbreviation" } |
442 -re "Starting program: .*No program loaded.*$gdb_prompt $"\ | 434 -re "Starting program: .*No program loaded.*$gdb_prompt $"\ |
443 { pass "run \"r\" abbreviation" } | 435 { pass "run \"r\" abbreviation" } |
444 -re "Don't know how to run. Try \"help target\"..*$gdb_prompt $"\ | 436 -re "Don't know how to run. Try \"help target\"..*$gdb_prompt $"\ |
445 { pass "run \"r\" abbreviation" } | 437 { pass "run \"r\" abbreviation" } |
| 438 -re "Starting program: .*Running the default executable on the remote t
arget failed; try \"set remote exec-file\"?.*$gdb_prompt $"\ |
| 439 { pass "run \"r\" abbreviation" } |
446 } | 440 } |
447 } | 441 } |
448 | 442 |
449 #test run | 443 #test run |
450 if $use_gdb_stub { | 444 if $use_gdb_stub { |
451 # Only extended-remote supports "run". | 445 # Only extended-remote supports "run". |
452 } elseif [istarget "*-*-vxworks*"] then { | 446 } elseif [istarget "*-*-vxworks*"] then { |
453 gdb_test "set args" ".*" "" | 447 gdb_test "set args" ".*" "" |
454 | 448 |
455 gdb_test "run" "Starting program: .* | 449 gdb_test "run" "Starting program: .* |
456 You must specify a function name to run, and arguments if any" | 450 You must specify a function name to run, and arguments if any" |
457 gdb_test "set args main" ".*" "" | 451 gdb_test "set args main" ".*" "" |
458 | 452 |
459 } else { | 453 } else { |
460 gdb_test_multiple "run" "run" { | 454 gdb_test_multiple "run" "run" { |
461 -re "Starting program:.*You can't do that when your target is `None'.*$g
db_prompt $"\ | 455 -re "Starting program:.*You can't do that when your target is `None'.*$g
db_prompt $"\ |
462 { pass "run" } | 456 { pass "run" } |
463 -re "Starting program: .*No executable file specified.*Use the \"file\"
or \"exec-file\" command.*$gdb_prompt $"\ | 457 -re "Starting program: .*No executable file specified.*Use the \"file\"
or \"exec-file\" command.*$gdb_prompt $"\ |
464 { pass "run" } | 458 { pass "run" } |
465 -re "Starting program: .*No executable specified, use .target exec.\\..
*$gdb_prompt $"\ | 459 -re "Starting program: .*No executable specified, use .target exec.\\..
*$gdb_prompt $"\ |
466 { pass "run" } | 460 { pass "run" } |
467 -re "Starting program: .*No image loaded into target.*$gdb_prompt $"\ | 461 -re "Starting program: .*No image loaded into target.*$gdb_prompt $"\ |
468 { pass "run" } | 462 { pass "run" } |
469 -re "Starting program: .*No program loaded.*$gdb_prompt $"\ | 463 -re "Starting program: .*No program loaded.*$gdb_prompt $"\ |
470 { pass "run" } | 464 { pass "run" } |
471 -re "Don't know how to run. Try \"help target\"..*$gdb_prompt $"\ | 465 -re "Don't know how to run. Try \"help target\"..*$gdb_prompt $"\ |
472 { pass "run" } | 466 { pass "run" } |
| 467 -re "Starting program: .*Running the default executable on the remote t
arget failed; try \"set remote exec-file\"?.*$gdb_prompt $"\ |
| 468 { pass "run" } |
473 } | 469 } |
474 } | 470 } |
475 | 471 |
476 #test rbreak | 472 #test rbreak |
477 gdb_test "rbreak" "rbreak" | 473 gdb_test "rbreak" "rbreak" |
478 | 474 |
479 # test restore | 475 # test restore |
480 gdb_test "restore" "You can't do that without a process to debug\." | 476 gdb_test "restore" "You can't do that without a process to debug\." |
481 | 477 |
482 #test return | 478 #test return |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 gdb_test_no_output "set history expansion" "set history expansion" | 521 gdb_test_no_output "set history expansion" "set history expansion" |
526 #test set history filename | 522 #test set history filename |
527 gdb_test "set history filename" "Argument required .filename to set it to.*" "se
t history filename" | 523 gdb_test "set history filename" "Argument required .filename to set it to.*" "se
t history filename" |
528 #test set history save | 524 #test set history save |
529 gdb_test_no_output "set history save" "set history save" | 525 gdb_test_no_output "set history save" "set history save" |
530 #test set history size | 526 #test set history size |
531 gdb_test "set history size" "Argument required .integer to set it to.*" "set his
tory size" | 527 gdb_test "set history size" "Argument required .integer to set it to.*" "set his
tory size" |
532 #test set history | 528 #test set history |
533 gdb_test "set history" "\"set history\" must be followed by the name of a histor
y subcommand.(\[^\r\n\]*\[\r\n\])+List of set history subcommands:(\[^\r\n\]*\[\
r\n\])+set history expansion -- Set history expansion on command input(\[^\r\n\]
*\[\r\n\])+set history filename -- Set the filename in which to record the comma
nd history(\[^\r\n\]*\[\r\n\])+set history save -- Set saving of the history rec
ord on exit(\[^\r\n\]*\[\r\n\])+set history size -- Set the size of the command
history(\[^\r\n\]*\[\r\n\])+Type \"help set history\" followed by set history su
bcommand name for full documentation.(\[^\r\n\]*\[\r\n\])+Command name abbreviat
ions are allowed if unambiguous." "set history" | 529 gdb_test "set history" "\"set history\" must be followed by the name of a histor
y subcommand.(\[^\r\n\]*\[\r\n\])+List of set history subcommands:(\[^\r\n\]*\[\
r\n\])+set history expansion -- Set history expansion on command input(\[^\r\n\]
*\[\r\n\])+set history filename -- Set the filename in which to record the comma
nd history(\[^\r\n\]*\[\r\n\])+set history save -- Set saving of the history rec
ord on exit(\[^\r\n\]*\[\r\n\])+set history size -- Set the size of the command
history(\[^\r\n\]*\[\r\n\])+Type \"help set history\" followed by set history su
bcommand name for full documentation.(\[^\r\n\]*\[\r\n\])+Command name abbreviat
ions are allowed if unambiguous." "set history" |
534 #test set language | 530 #test set language |
535 gdb_test "set language" "Requires an argument. Valid arguments are auto, local,
unknown, ada, c, c.., asm, minimal, d, fortran, objective-c, java, modula-2, ope
ncl, pascal." "set language" | 531 gdb_test "set language" "Requires an argument. Valid arguments are auto, local,
unknown, ada, c, c.., asm, minimal, d, fortran, objective-c, go, java, modula-2,
opencl, pascal." "set language" |
536 #test set listsize | 532 #test set listsize |
537 gdb_test "set listsize" "Argument required .integer to set it to.*" "set listsiz
e" | 533 gdb_test "set listsize" "Argument required .integer to set it to.*" "set listsiz
e" |
538 #test set print "p" abbreviation | 534 #test set print "p" abbreviation |
539 gdb_test "set p" "\"set print\" must be followed by the name of a print subcomma
nd.(\[^\r\n\]*\[\r\n\])+List of set print subcommands:(\[^\r\n\]*\[\r\n\])+Type
\"help set print\" followed by set print subcommand name for full documentation.
(\[^\r\n\]*\[\r\n\])+Command name abbreviations are allowed if unambiguous." "se
t print \"p\" abbreviation" | 535 gdb_test "set p" "\"set print\" must be followed by the name of a print subcomma
nd.(\[^\r\n\]*\[\r\n\])+List of set print subcommands:(\[^\r\n\]*\[\r\n\])+Type
\"help set print\" followed by set print subcommand name for full documentation.
(\[^\r\n\]*\[\r\n\])+Command name abbreviations are allowed if unambiguous." "se
t print \"p\" abbreviation" |
540 #test set print "pr" abbreviation | 536 #test set print "pr" abbreviation |
541 gdb_test "set pr" "\"set print\" must be followed by the name of a print subcomm
and.(\[^\r\n\]*\[\r\n\])+List of set print subcommands:(\[^\r\n\]*\[\r\n\])+Type
\"help set print\" followed by set print subcommand name for full documentation
.(\[^\r\n\]*\[\r\n\])+Command name abbreviations are allowed if unambiguous." "s
et print \"pr\" abbreviation" | 537 gdb_test "set pr" "\"set print\" must be followed by the name of a print subcomm
and.(\[^\r\n\]*\[\r\n\])+List of set print subcommands:(\[^\r\n\]*\[\r\n\])+Type
\"help set print\" followed by set print subcommand name for full documentation
.(\[^\r\n\]*\[\r\n\])+Command name abbreviations are allowed if unambiguous." "s
et print \"pr\" abbreviation" |
542 #test set print | 538 #test set print |
543 gdb_test "set print" "\"set print\" must be followed by the name of a print subc
ommand.(\[^\r\n\]*\[\r\n\])+List of set print subcommands:(\[^\r\n\]*\[\r\n\])+T
ype \"help set print\" followed by set print subcommand name for full documentat
ion.(\[^\r\n\]*\[\r\n\])+Command name abbreviations are allowed if unambiguous."
"set print" | 539 gdb_test "set print" "\"set print\" must be followed by the name of a print subc
ommand.(\[^\r\n\]*\[\r\n\])+List of set print subcommands:(\[^\r\n\]*\[\r\n\])+T
ype \"help set print\" followed by set print subcommand name for full documentat
ion.(\[^\r\n\]*\[\r\n\])+Command name abbreviations are allowed if unambiguous."
"set print" |
544 #test set print address | 540 #test set print address |
545 gdb_test_no_output "set print address" "set print address" | 541 gdb_test_no_output "set print address" "set print address" |
(...skipping 11 matching lines...) Expand all Loading... |
557 gdb_test_no_output "set print pretty" "set print pretty" | 553 gdb_test_no_output "set print pretty" "set print pretty" |
558 #test set print sevenbit-strings | 554 #test set print sevenbit-strings |
559 gdb_test_no_output "set print sevenbit-strings" "set print sevenbit-strings" | 555 gdb_test_no_output "set print sevenbit-strings" "set print sevenbit-strings" |
560 #test set print union | 556 #test set print union |
561 gdb_test_no_output "set print union" "set print union" | 557 gdb_test_no_output "set print union" "set print union" |
562 #test set print vtbl | 558 #test set print vtbl |
563 gdb_test_no_output "set print vtbl" "set print vtbl" | 559 gdb_test_no_output "set print vtbl" "set print vtbl" |
564 # FIXME -- need a test for "set prompt" | 560 # FIXME -- need a test for "set prompt" |
565 #test set radix | 561 #test set radix |
566 gdb_test "set radix" "Input and output radices now set to decimal 10, hex a, oct
al 12.*" "set radix" | 562 gdb_test "set radix" "Input and output radices now set to decimal 10, hex a, oct
al 12.*" "set radix" |
567 #test set symbol-reloading | |
568 gdb_test_no_output "set symbol-reloading" "set symbol-reloading" | |
569 #test set variable | 563 #test set variable |
570 gdb_test "set variable" "Argument required .expression to compute.*" "set variab
le" | 564 gdb_test "set variable" "Argument required .expression to compute.*" "set variab
le" |
571 #test set verbose | 565 #test set verbose |
572 gdb_test_no_output "set verbose" "set verbose" | 566 gdb_test_no_output "set verbose" "set verbose" |
573 #test set width | 567 #test set width |
574 gdb_test "set width" "Argument required .integer to set it to.*" "set width" | 568 gdb_test "set width" "Argument required .integer to set it to.*" "set width" |
575 #test set write | 569 #test set write |
576 # This is only supported on targets which use exec.o. | 570 # This is only supported on targets which use exec.o. |
577 gdb_test_no_output "set write" "set write" | 571 gdb_test_no_output "set write" "set write" |
578 #test set | 572 #test set |
(...skipping 24 matching lines...) Expand all Loading... |
603 #test show convenience | 597 #test show convenience |
604 # This is tricker as there are multiple internal convenience vars and we | 598 # This is tricker as there are multiple internal convenience vars and we |
605 # can't assume any particular order. | 599 # can't assume any particular order. |
606 gdb_test_list_exact "show convenience" "show convenience" \ | 600 gdb_test_list_exact "show convenience" "show convenience" \ |
607 "\[^\r\n\]+\[\r\n\]+" \ | 601 "\[^\r\n\]+\[\r\n\]+" \ |
608 "\[^\r\n\]+" \ | 602 "\[^\r\n\]+" \ |
609 { \ | 603 { \ |
610 {$_sdata = void} \ | 604 {$_sdata = void} \ |
611 {$_siginfo = void} \ | 605 {$_siginfo = void} \ |
612 {$_thread = 0} \ | 606 {$_thread = 0} \ |
| 607 {$_probe_argc = <error: No frame selected>} \ |
| 608 {$_probe_arg0 = <error: No frame selected>} \ |
| 609 {$_probe_arg1 = <error: No frame selected>} \ |
| 610 {$_probe_arg2 = <error: No frame selected>} \ |
| 611 {$_probe_arg3 = <error: No frame selected>} \ |
| 612 {$_probe_arg4 = <error: No frame selected>} \ |
| 613 {$_probe_arg5 = <error: No frame selected>} \ |
| 614 {$_probe_arg6 = <error: No frame selected>} \ |
| 615 {$_probe_arg7 = <error: No frame selected>} \ |
| 616 {$_probe_arg8 = <error: No frame selected>} \ |
| 617 {$_probe_arg9 = <error: No frame selected>} \ |
| 618 {$_probe_arg10 = <error: No frame selected>} \ |
| 619 {$_probe_arg11 = <error: No frame selected>} \ |
613 } | 620 } |
614 | 621 |
615 #test show directories | 622 #test show directories |
616 gdb_test "show directories" "Source directories searched: .cdir\[:;\].cwd" "show
directories" | 623 gdb_test "show directories" "Source directories searched: .cdir\[:;\].cwd" "show
directories" |
617 #test show editing | 624 #test show editing |
618 gdb_test "show editing" "Editing of command lines as they are typed is o\[a-z\]*
." "show editing" | 625 gdb_test "show editing" "Editing of command lines as they are typed is o\[a-z\]*
." "show editing" |
619 #test show height | 626 #test show height |
620 gdb_test "show height" "Number of lines gdb thinks are in a page is.*" "show hei
ght" | 627 gdb_test "show height" "Number of lines gdb thinks are in a page is.*" "show hei
ght" |
621 #test show history expansion | 628 #test show history expansion |
622 gdb_test "show history expansion" "History expansion on command input is o\[a-z\
]*.*" "show history expansion" | 629 gdb_test "show history expansion" "History expansion on command input is o\[a-z\
]*.*" "show history expansion" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 gdb_test "show print union" "Printing of unions interior to structures is on." "
show print union" | 667 gdb_test "show print union" "Printing of unions interior to structures is on." "
show print union" |
661 #test show print vtbl | 668 #test show print vtbl |
662 gdb_test "show print vtbl" "Printing of C\[+\]+ virtual function tables is on."
"show print vtbl" | 669 gdb_test "show print vtbl" "Printing of C\[+\]+ virtual function tables is on."
"show print vtbl" |
663 #test show prompt | 670 #test show prompt |
664 # In the FAIL case, can't just look for $gdb_prompt because that will match | 671 # In the FAIL case, can't just look for $gdb_prompt because that will match |
665 # the output, rather than the prompt. So look for $gdb_prompt at the start | 672 # the output, rather than the prompt. So look for $gdb_prompt at the start |
666 # of a line. | 673 # of a line. |
667 gdb_test "show prompt" "Gdb's prompt is \"$gdb_prompt \".*" "show prompt" | 674 gdb_test "show prompt" "Gdb's prompt is \"$gdb_prompt \".*" "show prompt" |
668 #test show radix | 675 #test show radix |
669 gdb_test "show radix" "Input and output radices set to decimal 10, hex a, octal
12." "show radix" | 676 gdb_test "show radix" "Input and output radices set to decimal 10, hex a, octal
12." "show radix" |
670 #test show symbol-reloading | |
671 gdb_test "show symbol-reloading" "Dynamic symbol table reloading multiple times
in one run is on." "show symbol-reloading" | |
672 #test show user | 677 #test show user |
673 gdb_test_no_output "show user" "show user" | 678 gdb_test_no_output "show user" "show user" |
674 #test show values | 679 #test show values |
675 gdb_test_no_output "show values" "show values" | 680 gdb_test_no_output "show values" "show values" |
676 #test show verbose | 681 #test show verbose |
677 gdb_test "show verbose" "Verbose printing of informational messages is o.*|Verbo
sity is off.*" "show verbose" | 682 gdb_test "show verbose" "Verbose printing of informational messages is o.*|Verbo
sity is off.*" "show verbose" |
678 #test show version | 683 #test show version |
679 gdb_test "show version" "GNU gdb \[0-9\.\]*(\[^\r\n\]*\[\r\n\])+Copyright \\(C\\
) \[0-9\]* Free Software Foundation, Inc(\[^\r\n\]*\[\r\n\])+License GPLv3\\+: G
NU GPL version 3 or later <http://gnu.org/licenses/gpl.html>(\[^\r\n\]*\[\r\n\])
+This is free software: you are free to change and redistribute it.(\[^\r\n\]*\[
\r\n\])+There is NO WARRANTY, to the extent permitted by law. Type \"show copyi
ng\"(\[^\r\n\]*\[\r\n\])+and \"show warranty\" for details..*" "show version" | 684 gdb_test "show version" "GNU gdb \[0-9\.\]*(\[^\r\n\]*\[\r\n\])+Copyright \\(C\\
) \[0-9\]* Free Software Foundation, Inc(\[^\r\n\]*\[\r\n\])+License GPLv3\\+: G
NU GPL version 3 or later <http://gnu.org/licenses/gpl.html>(\[^\r\n\]*\[\r\n\])
+This is free software: you are free to change and redistribute it.(\[^\r\n\]*\[
\r\n\])+There is NO WARRANTY, to the extent permitted by law. Type \"show copyi
ng\"(\[^\r\n\]*\[\r\n\])+and \"show warranty\" for details..*" "show version" |
680 #test show width | 685 #test show width |
681 gdb_test "show width" "Number of characters gdb thinks are in a line is.*" "show
width" | 686 gdb_test "show width" "Number of characters gdb thinks are in a line is.*" "show
width" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 #test whatis | 830 #test whatis |
826 gdb_test "whatis" "The history is empty." "whatis" | 831 gdb_test "whatis" "The history is empty." "whatis" |
827 #test where | 832 #test where |
828 gdb_test "where" "No stack." "where" | 833 gdb_test "where" "No stack." "where" |
829 #test x | 834 #test x |
830 gdb_test "x" "Argument required .starting display address.*" "x" | 835 gdb_test "x" "Argument required .starting display address.*" "x" |
831 | 836 |
832 gdb_exit | 837 gdb_exit |
833 | 838 |
834 set timeout $prev_timeout | 839 set timeout $prev_timeout |
OLD | NEW |