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 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 # Delete breakpoints before starting the application. The debugger | 59 # Delete breakpoints before starting the application. The debugger |
60 # shouldn't prompt for anything. | 60 # shouldn't prompt for anything. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 \[0-9\]+\[\t \]+breakpoint keep y.*PENDING.*$spu_file.c:10.*" \ | 94 \[0-9\]+\[\t \]+breakpoint keep y.*PENDING.*$spu_file.c:10.*" \ |
95 "breakpoint info" | 95 "breakpoint info" |
96 | 96 |
97 gdb_test "continue" \ | 97 gdb_test "continue" \ |
98 "Continuing.*Switching to Thread.*Breakpoint.*main.*at.*$spu_file.c.*"
\ | 98 "Continuing.*Switching to Thread.*Breakpoint.*main.*at.*$spu_file.c.*"
\ |
99 "continuing to spu thread" | 99 "continuing to spu thread" |
100 | 100 |
101 gdb_exit | 101 gdb_exit |
102 | 102 |
103 return 0 | 103 return 0 |
OLD | NEW |