| OLD | NEW |
| 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 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 # Compile PPU binary. | 40 # Compile PPU binary. |
| 41 if { [gdb_cell_embedspu $spu_bin $spu_bin-embed.o {debug}] != "" } { | 41 if { [gdb_cell_embedspu $spu_bin $spu_bin-embed.o {debug}] != "" } { |
| 42 unsupported "Embedding spu binary failed." | 42 unsupported "Embedding spu binary failed." |
| 43 return -1 | 43 return -1 |
| 44 } | 44 } |
| 45 if { [gdb_compile_cell_ppu [list $ppu_src $spu_bin-embed.o] $ppu_bin executable
{debug}] != "" } { | 45 if { [gdb_compile_cell_ppu [list $ppu_src $spu_bin-embed.o] $ppu_bin executable
{debug}] != "" } { |
| 46 unsupported "Compiling ppu binary failed." | 46 unsupported "Compiling ppu binary failed." |
| 47 return -1 | 47 return -1 |
| 48 } | 48 } |
| 49 | 49 |
| 50 if [get_compiler_info ${ppu_bin}] { | 50 if [get_compiler_info] { |
| 51 return -1 | 51 return -1 |
| 52 } | 52 } |
| 53 | 53 |
| 54 gdb_exit | 54 gdb_exit |
| 55 gdb_start | 55 gdb_start |
| 56 gdb_reinitialize_dir $srcdir/$subdir | 56 gdb_reinitialize_dir $srcdir/$subdir |
| 57 gdb_load ${ppu_bin} | 57 gdb_load ${ppu_bin} |
| 58 | 58 |
| 59 if ![runto_main] then { | 59 if ![runto_main] then { |
| 60 fail "Can't run to main" | 60 fail "Can't run to main" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 77 gdb_test_no_output "delete \$bpnum" "delete watchpoint" | 77 gdb_test_no_output "delete \$bpnum" "delete watchpoint" |
| 78 | 78 |
| 79 gdb_test "continue" "Continuing\\..*Breakpoint \[0-9\]+, func \\(\\) at .*$spu_f
ile.c:.*" \ | 79 gdb_test "continue" "Continuing\\..*Breakpoint \[0-9\]+, func \\(\\) at .*$spu_f
ile.c:.*" \ |
| 80 "run until breakpoint hit" | 80 "run until breakpoint hit" |
| 81 | 81 |
| 82 gdb_continue_to_end "" continue 1 | 82 gdb_continue_to_end "" continue 1 |
| 83 | 83 |
| 84 gdb_exit | 84 gdb_exit |
| 85 | 85 |
| 86 return 0 | 86 return 0 |
| OLD | NEW |