| OLD | NEW |
| 1 # This testcase is part of GDB, the GNU debugger. | 1 # This testcase is part of GDB, the GNU debugger. |
| 2 | 2 |
| 3 # Copyright 2004-2005, 2007-2012 Free Software Foundation, Inc. | 3 # Copyright 2004-2005, 2007-2012 Free Software Foundation, Inc. |
| 4 | 4 |
| 5 # This program is free software; you can redistribute it and/or modify | 5 # This program is free software; you can redistribute it and/or modify |
| 6 # it under the terms of the GNU General Public License as published by | 6 # it under the terms of the GNU General Public License as published by |
| 7 # the Free Software Foundation; either version 3 of the License, or | 7 # the Free Software Foundation; either version 3 of the License, or |
| 8 # (at your option) any later version. | 8 # (at your option) any later version. |
| 9 # | 9 # |
| 10 # This program is distributed in the hope that it will be useful, | 10 # This program is distributed in the hope that it will be useful, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 # system call, instead resuming the inferior at full speed; GDB | 26 # system call, instead resuming the inferior at full speed; GDB |
| 27 # doesn't know how to software single-step across a sigreturn | 27 # doesn't know how to software single-step across a sigreturn |
| 28 # instruction. Since the kernel problems can be "fixed" using | 28 # instruction. Since the kernel problems can be "fixed" using |
| 29 # software single-step this is KFAILed rather than XFAILed. | 29 # software single-step this is KFAILed rather than XFAILed. |
| 30 | 30 |
| 31 if [target_info exists gdb,nosignals] { | 31 if [target_info exists gdb,nosignals] { |
| 32 verbose "Skipping sigbpt.exp because of nosignals." | 32 verbose "Skipping sigbpt.exp because of nosignals." |
| 33 continue | 33 continue |
| 34 } | 34 } |
| 35 | 35 |
| 36 if $tracelevel { | |
| 37 strace $tracelevel | |
| 38 } | |
| 39 | |
| 40 | 36 |
| 41 set testfile "sigbpt" | 37 set testfile "sigbpt" |
| 42 set srcfile ${testfile}.c | 38 set srcfile ${testfile}.c |
| 43 set binfile ${objdir}/${subdir}/${testfile} | 39 set binfile ${objdir}/${subdir}/${testfile} |
| 44 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debu
g}] != "" } { | 40 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debu
g}] != "" } { |
| 45 untested sigbpt.exp | 41 untested sigbpt.exp |
| 46 return -1 | 42 return -1 |
| 47 } | 43 } |
| 48 | 44 |
| 49 gdb_exit | 45 gdb_exit |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 stepi_out "stepi bp before and at segv" "*[at_segv]" "*[before_segv]" | 266 stepi_out "stepi bp before and at segv" "*[at_segv]" "*[before_segv]" |
| 271 | 267 |
| 272 | 268 |
| 273 # Try to confuse DECR_PC_AFTER_BREAK architectures by scattering | 269 # Try to confuse DECR_PC_AFTER_BREAK architectures by scattering |
| 274 # breakpoints around the faulting address. In all cases the inferior | 270 # breakpoints around the faulting address. In all cases the inferior |
| 275 # should exit the signal trampoline halting at the breakpoint that | 271 # should exit the signal trampoline halting at the breakpoint that |
| 276 # replaced the fault instruction. | 272 # replaced the fault instruction. |
| 277 cont_out "cont" | 273 cont_out "cont" |
| 278 cont_out "cont bp after segv" "*[before_segv]" | 274 cont_out "cont bp after segv" "*[before_segv]" |
| 279 cont_out "cont bp before and after segv" "*[before_segv]" "*[after_segv]" | 275 cont_out "cont bp before and after segv" "*[before_segv]" "*[after_segv]" |
| OLD | NEW |