Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: gdb/testsuite/gdb.base/setvar.exp

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/testsuite/gdb.base/setvar.c ('k') | gdb/testsuite/gdb.base/shlib-call.exp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # This testcase is part of GDB, the GNU debugger. 1 # This testcase is part of GDB, the GNU debugger.
2 2
3 # Copyright 1988, 1990-1997, 1999-2001, 2004, 2007-2012 Free Software 3 # Copyright 1988, 1990-1997, 1999-2001, 2004, 2007-2012 Free Software
4 # Foundation, Inc. 4 # Foundation, Inc.
5 5
6 # This program is free software; you can redistribute it and/or modify 6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by 7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or 8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version. 9 # (at your option) any later version.
10 # 10 #
11 # This program is distributed in the hope that it will be useful, 11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details. 14 # GNU General Public License for more details.
15 # 15 #
16 # You should have received a copy of the GNU General Public License 16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. 17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 18
19 # Please email any bugs, comments, and/or additions to this file to: 19 # Please email any bugs, comments, and/or additions to this file to:
20 # bug-gdb@gnu.org 20 # bug-gdb@gnu.org
21 21
22 # This file was written by Rob Savoye. (rob@cygnus.com) 22 # This file was written by Rob Savoye. (rob@cygnus.com)
23 23
24 if $tracelevel then {
25 strace $tracelevel
26 }
27
28 # 24 #
29 # test running programs 25 # test running programs
30 # 26 #
31 27
32 set testfile "setvar" 28 set testfile "setvar"
33 set srcfile ${testfile}.c 29 set srcfile ${testfile}.c
34 set binfile ${objdir}/${subdir}/${testfile} 30 set binfile ${objdir}/${subdir}/${testfile}
35 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb ug}] != "" } { 31 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb ug}] != "" } {
36 untested setvar.exp 32 untested setvar.exp
37 return -1 33 return -1
38 } 34 }
39 35
40 # Create and source the file that provides information about the compiler 36 # Create and source the file that provides information about the compiler
41 # used to compile the test case. 37 # used to compile the test case.
42 if [get_compiler_info ${binfile}] { 38 if [get_compiler_info] {
43 return -1; 39 return -1;
44 } 40 }
45 41
46 gdb_exit 42 gdb_exit
47 gdb_start 43 gdb_start
48 gdb_reinitialize_dir $srcdir/$subdir 44 gdb_reinitialize_dir $srcdir/$subdir
49 gdb_load $binfile 45 gdb_load $binfile
50 46
51 # 47 #
52 # set it up at a breakpoint so we canplay with the variable values 48 # set it up at a breakpoint so we canplay with the variable values
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 gdb_test "print uef.field" ".*.\[0-9\]* = u2" "print uef.field (u2)" 397 gdb_test "print uef.field" ".*.\[0-9\]* = u2" "print uef.field (u2)"
402 gdb_test "print uef.field=u1" ".*.\[0-9\]* = u1" 398 gdb_test "print uef.field=u1" ".*.\[0-9\]* = u1"
403 gdb_test "print uef.field" ".*.\[0-9\]* = u1" "print uef.field (u1)" 399 gdb_test "print uef.field" ".*.\[0-9\]* = u1" "print uef.field (u1)"
404 400
405 # Test for truncation when assigning invalid values to bitfields. 401 # Test for truncation when assigning invalid values to bitfields.
406 gdb_test "print sef.field=7" \ 402 gdb_test "print sef.field=7" \
407 ".*warning: Value does not fit in 2 bits.*\[0-9\]* = sm1" 403 ".*warning: Value does not fit in 2 bits.*\[0-9\]* = sm1"
408 gdb_test "print uef.field=6" \ 404 gdb_test "print uef.field=6" \
409 ".*warning: Value does not fit in 2 bits.*\[0-9\]* = u2" 405 ".*warning: Value does not fit in 2 bits.*\[0-9\]* = u2"
410 } 406 }
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/setvar.c ('k') | gdb/testsuite/gdb.base/shlib-call.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698