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

Side by Side Diff: gdb/testsuite/gdb.cell/core.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.cell/bt.exp ('k') | gdb/testsuite/gdb.cell/data.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 # Copyright 2009, 2011-2012 Free Software Foundation, Inc. 1 # Copyright 2009, 2011-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
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 # Compile PPU binary. 44 # Compile PPU binary.
45 if { [gdb_cell_embedspu $spu_bin $spu_bin-embed.o {debug}] != "" } { 45 if { [gdb_cell_embedspu $spu_bin $spu_bin-embed.o {debug}] != "" } {
46 unsupported "Embedding spu binary failed." 46 unsupported "Embedding spu binary failed."
47 return -1 47 return -1
48 } 48 }
49 if { [gdb_compile_cell_ppu [list $ppu_src $spu_bin-embed.o] $ppu_bin executable {debug}] != "" } { 49 if { [gdb_compile_cell_ppu [list $ppu_src $spu_bin-embed.o] $ppu_bin executable {debug}] != "" } {
50 unsupported "Compiling ppu binary failed." 50 unsupported "Compiling ppu binary failed."
51 return -1 51 return -1
52 } 52 }
53 53
54 if [get_compiler_info ${ppu_bin}] { 54 if [get_compiler_info] {
55 return -1 55 return -1
56 } 56 }
57 57
58 # Run program to generate a core file -- see gdb.base/corefile.exp 58 # Run program to generate a core file -- see gdb.base/corefile.exp
59 set found 0 59 set found 0
60 set coredir "${objdir}/${subdir}/coredir.[getpid]" 60 set coredir "${objdir}/${subdir}/coredir.[getpid]"
61 file mkdir $coredir 61 file mkdir $coredir
62 catch "system \"(cd ${coredir}; ulimit -c unlimited; ${ppu_bin}; true) >/dev/nul l 2>&1\"" 62 catch "system \"(cd ${coredir}; ulimit -c unlimited; ${ppu_bin}; true) >/dev/nul l 2>&1\""
63 set names [glob -nocomplain -directory $coredir core.*] 63 set names [glob -nocomplain -directory $coredir core.*]
64 if {[llength $names] == 1} { 64 if {[llength $names] == 1} {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 "Switching to thread $thread_id.*" \ 96 "Switching to thread $thread_id.*" \
97 "switch to thread $thread_id" 97 "switch to thread $thread_id"
98 gdb_test "backtrace" \ 98 gdb_test "backtrace" \
99 ".*terminal_func.*factorial_func.*value=1.*factorial_func.*value=2.*f actorial_func.*value=3.*factorial_func.*value=4.*factorial_func.*value=5.*factor ial_func.*value=6.*main.*speid.*argp.*envp.*at.*$spu_file.c.*<cross-architecture call>.*spe_context_run.*spe_thread.*at.*$ppu_file.c.*" \ 99 ".*terminal_func.*factorial_func.*value=1.*factorial_func.*value=2.*f actorial_func.*value=3.*factorial_func.*value=4.*factorial_func.*value=5.*factor ial_func.*value=6.*main.*speid.*argp.*envp.*at.*$spu_file.c.*<cross-architecture call>.*spe_context_run.*spe_thread.*at.*$ppu_file.c.*" \
100 "backtrace in thread $thread_id" 100 "backtrace in thread $thread_id"
101 } 101 }
102 102
103 gdb_exit 103 gdb_exit
104 104
105 return 0 105 return 0
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.cell/bt.exp ('k') | gdb/testsuite/gdb.cell/data.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698