OLD | NEW |
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 } | 51 } |
52 if { [gdb_cell_embedspu $spu2_bin $spu2_bin-embed.o {debug}] != "" } { | 52 if { [gdb_cell_embedspu $spu2_bin $spu2_bin-embed.o {debug}] != "" } { |
53 unsupported "Embedding spu binary failed." | 53 unsupported "Embedding spu binary failed." |
54 return -1 | 54 return -1 |
55 } | 55 } |
56 if { [gdb_compile_cell_ppu [list $ppu_src $spu_bin-embed.o $spu2_bin-embed.o] $p
pu_bin executable {debug}] != "" } { | 56 if { [gdb_compile_cell_ppu [list $ppu_src $spu_bin-embed.o $spu2_bin-embed.o] $p
pu_bin executable {debug}] != "" } { |
57 unsupported "Compiling ppu binary failed." | 57 unsupported "Compiling ppu binary failed." |
58 return -1 | 58 return -1 |
59 } | 59 } |
60 | 60 |
61 if [get_compiler_info ${ppu_bin}] { | 61 if [get_compiler_info] { |
62 return -1 | 62 return -1 |
63 } | 63 } |
64 | 64 |
65 gdb_exit | 65 gdb_exit |
66 gdb_start | 66 gdb_start |
67 gdb_reinitialize_dir $srcdir/$subdir | 67 gdb_reinitialize_dir $srcdir/$subdir |
68 gdb_load ${ppu_bin} | 68 gdb_load ${ppu_bin} |
69 | 69 |
70 if ![runto_main] then { | 70 if ![runto_main] then { |
71 fail "Can't run to main" | 71 fail "Can't run to main" |
(...skipping 10 matching lines...) Expand all Loading... |
82 "Switching to thread $thread_id.*" \ | 82 "Switching to thread $thread_id.*" \ |
83 "switch to thread $thread_id" | 83 "switch to thread $thread_id" |
84 gdb_test "backtrace" \ | 84 gdb_test "backtrace" \ |
85 ".*crash_handler.*base.*offset.*<cross-architecture call>.*main.*spei
d.*argp.*envp.*at.*$spu2_file.c.*<cross-architecture call>.*spe_context_run.*ind
irect_handler.*base.*offset.*<cross-architecture call>.*main.*speid.*argp.*envp.
*at.*$spu_file.c.*<cross-architecture call>.*spe_context_run.*spe_thread.*at.*$p
pu_file.c.*" \ | 85 ".*crash_handler.*base.*offset.*<cross-architecture call>.*main.*spei
d.*argp.*envp.*at.*$spu2_file.c.*<cross-architecture call>.*spe_context_run.*ind
irect_handler.*base.*offset.*<cross-architecture call>.*main.*speid.*argp.*envp.
*at.*$spu_file.c.*<cross-architecture call>.*spe_context_run.*spe_thread.*at.*$p
pu_file.c.*" \ |
86 "backtrace in thread $thread_id" | 86 "backtrace in thread $thread_id" |
87 } | 87 } |
88 | 88 |
89 gdb_exit | 89 gdb_exit |
90 | 90 |
91 return 0 | 91 return 0 |
OLD | NEW |