| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 gdb_exit | 58 gdb_exit |
| 59 gdb_start | 59 gdb_start |
| 60 gdb_reinitialize_dir $srcdir/$subdir | 60 gdb_reinitialize_dir $srcdir/$subdir |
| 61 gdb_load ${ppu_bin} | 61 gdb_load ${ppu_bin} |
| 62 | 62 |
| 63 if ![runto_main] then { | 63 if ![runto_main] then { |
| 64 fail "Can't run to main" | 64 fail "Can't run to main" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 "Switching to thread $thread_id.*" \ | 110 "Switching to thread $thread_id.*" \ |
| 111 "switch to thread $thread_id" | 111 "switch to thread $thread_id" |
| 112 gdb_test "backtrace" \ | 112 gdb_test "backtrace" \ |
| 113 ".*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.*" \ | 113 ".*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.*" \ |
| 114 "backtrace in thread $thread_id" | 114 "backtrace in thread $thread_id" |
| 115 } | 115 } |
| 116 | 116 |
| 117 gdb_exit | 117 gdb_exit |
| 118 | 118 |
| 119 return 0 | 119 return 0 |
| OLD | NEW |