gdb/testsuite/
* gdb.base/break-interp-lib.c: Include unistd.h, assert.h and stdio.h. (libfunc): New parameter action. Implement also selectable "sleep". * gdb.base/break-interp-main.c: Include assert.h. (libfunc): New parameter action. (main): New parameters argc and argv. Assert argc. Pass argv. * gdb.base/break-interp.exp (test_core): Pass the "segv" argument. (test_attach): New proc. (test_ld): Pass new "segv" exec parameter. Call also test_attach. * lib/gdb.exp (core_find): New parameter arg. Pass it to $binfile.
This commit is contained in:
parent
61f0d76280
commit
bbfba9ed15
5 changed files with 81 additions and 9 deletions
|
@ -3121,7 +3121,7 @@ if {[info exists TRANSCRIPT]} {
|
|||
}
|
||||
}
|
||||
|
||||
proc core_find {binfile {deletefiles {}}} {
|
||||
proc core_find {binfile {deletefiles {}} {arg ""}} {
|
||||
global objdir subdir
|
||||
|
||||
set destcore "$binfile.core"
|
||||
|
@ -3143,7 +3143,7 @@ proc core_find {binfile {deletefiles {}}} {
|
|||
set found 0
|
||||
set coredir "${objdir}/${subdir}/coredir.[getpid]"
|
||||
file mkdir $coredir
|
||||
catch "system \"(cd ${coredir}; ulimit -c unlimited; ${binfile}; true) >/dev/null 2>&1\""
|
||||
catch "system \"(cd ${coredir}; ulimit -c unlimited; ${binfile} ${arg}; true) >/dev/null 2>&1\""
|
||||
# remote_exec host "${binfile}"
|
||||
foreach i "${coredir}/core ${coredir}/core.coremaker.c ${binfile}.core" {
|
||||
if [remote_file build exists $i] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue