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

Side by Side Diff: gdb/testsuite/gdb.dwarf2/dw4-sig-types.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
OLDNEW
1 # Copyright 2010-2012 Free Software Foundation, Inc. 1 # Copyright 2010-2012 Free Software Foundation, Inc.
2 2
3 # This program is free software; you can redistribute it and/or modify 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 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 5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version. 6 # (at your option) any later version.
7 # 7 #
8 # This program is distributed in the hope that it will be useful, 8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details. 11 # GNU General Public License for more details.
12 # 12 #
13 # You should have received a copy of the GNU General Public License 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/>. 14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15 15
16 # Test dwarf4 signatured types. 16 # Test dwarf4 signatured types.
17 17
18 set test "dw4-sig-types" 18 standard_testfile .cc dw4-sig-types-b.cc
19 set executable ${test}.x
20 19
21 # This test is intended for targets which support DWARF-4. 20 # This test is intended for targets which support DWARF-4.
22 # Since we pass an explicit -gdwarf-4 to the compiler, we let 21 # Since we pass an explicit -gdwarf-4 to the compiler, we let
23 # that be the test of whether the target supports it. 22 # that be the test of whether the target supports it.
24 23
25 if { [prepare_for_testing "${test}.exp" "${executable}" \ 24 if { [prepare_for_testing "${testfile}.exp" "${testfile}" \
26 » {dw4-sig-types.cc dw4-sig-types-b.cc} \ 25 » [list $srcfile $srcfile2] \
27 » {debug c++ additional_flags=-gdwarf-4}] } { 26 » {debug c++ additional_flags=-gdwarf-4}] } {
28 return -1 27 return -1
29 } 28 }
30 29
31 # Stress test gdb's handling of cached comp units, disable the cache. 30 # Stress test gdb's handling of cached comp units, disable the cache.
32 gdb_test_no_output "maint set dwarf2 max-cache-age 0" 31 gdb_test_no_output "maint set dwarf2 max-cache-age 0"
33 32
34 if ![runto_main] { 33 if ![runto_main] {
35 return -1 34 return -1
36 } 35 }
37 36
38 # Bring symtab for myset into gdb. 37 # Bring symtab for myset into gdb.
39 gdb_test "p myset" ".*" 38 gdb_test "p myset" ".*"
40 39
41 # This is enough to trigger the problem in PR 11942. 40 # This is enough to trigger the problem in PR 11942.
42 gdb_breakpoint "foo" 41 gdb_breakpoint "foo"
43 gdb_continue "foo" 42 gdb_continue "foo"
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.exp ('k') | gdb/testsuite/gdb.dwarf2/fission-base.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698