| OLD | NEW |
| 1 # Copyright 1997-1999, 2003-2004, 2007-2012 Free Software Foundation, | 1 # Copyright 1997-1999, 2003-2004, 2007-2012 Free Software Foundation, |
| 2 # Inc. | 2 # 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 12 matching lines...) Expand all Loading... |
| 23 # pointers to volatile vars | 23 # pointers to volatile vars |
| 24 # const volatile vars | 24 # const volatile vars |
| 25 # pointers to const volatile vars | 25 # pointers to const volatile vars |
| 26 # const pointers to volatile vars | 26 # const pointers to volatile vars |
| 27 # volatile pointers to const vars | 27 # volatile pointers to const vars |
| 28 # const volatile pointers to const vars | 28 # const volatile pointers to const vars |
| 29 # const volatile pointers to volatile vars | 29 # const volatile pointers to volatile vars |
| 30 # ... etc. (you get the idea) | 30 # ... etc. (you get the idea) |
| 31 # Mostly with char and unsigned char. | 31 # Mostly with char and unsigned char. |
| 32 | 32 |
| 33 if $tracelevel then { | |
| 34 strace $tracelevel | |
| 35 } | |
| 36 | |
| 37 # | 33 # |
| 38 # test running programs | 34 # test running programs |
| 39 # | 35 # |
| 40 | 36 |
| 41 # Use the same test program constvars.c. | 37 # Use the same test program constvars.c. |
| 42 | 38 |
| 43 if { [prepare_for_testing volatile.exp volatile constvars.c] } { | 39 if { [prepare_for_testing volatile.exp volatile constvars.c] } { |
| 44 return -1 | 40 return -1 |
| 45 } | 41 } |
| 46 | 42 |
| 47 # Create and source the file that provides information about the compiler | 43 # Create and source the file that provides information about the compiler |
| 48 # used to compile the test case. | 44 # used to compile the test case. |
| 49 if [get_compiler_info not-used] { | 45 if [get_compiler_info] { |
| 50 return -1; | 46 return -1; |
| 51 } | 47 } |
| 52 | 48 |
| 53 # | 49 # |
| 54 # set it up at a breakpoint so we can play with the variable values | 50 # set it up at a breakpoint so we can play with the variable values |
| 55 # | 51 # |
| 56 if ![runto_main] then { | 52 if ![runto_main] then { |
| 57 perror "couldn't run to breakpoint" | 53 perror "couldn't run to breakpoint" |
| 58 continue | 54 continue |
| 59 } | 55 } |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 local_compiler_xfail_check | 230 local_compiler_xfail_check |
| 235 gdb_test "ptype vendor" "type = const volatile unsigned char \\* const volatile.
*" | 231 gdb_test "ptype vendor" "type = const volatile unsigned char \\* const volatile.
*" |
| 236 | 232 |
| 237 # test function parameters | 233 # test function parameters |
| 238 local_compiler_xfail_check | 234 local_compiler_xfail_check |
| 239 local_compiler_xfail_check_2 | 235 local_compiler_xfail_check_2 |
| 240 | 236 |
| 241 gdb_test "ptype qux2" \ | 237 gdb_test "ptype qux2" \ |
| 242 "type = int \\(volatile unsigned char, const volatile int, volatile short( i
nt)?, volatile long( int)? \\*, float \\* volatile, const volatile signed char \
\* const volatile\\)" \ | 238 "type = int \\(volatile unsigned char, const volatile int, volatile short( i
nt)?, volatile long( int)? \\*, float \\* volatile, const volatile signed char \
\* const volatile\\)" \ |
| 243 "ptype qux2" | 239 "ptype qux2" |
| OLD | NEW |