mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
* fixed two bugs reported by the IBM BEAM checker:
fd leak in vgdb.c
break missing in valgrind-low-s390x.c
* use option --vgdb=full for the tests mcsigpass.vgtest and mcsignopass.vgtest
This might improve these tests on ppc32/debian 6.0
* added a paragraph in gdbserver_tests/README_DEVELOPPERS to indicate
how to report problems about failing gdbserver tests.
(bug 214909 comment 71, Philippe Waroquiers, philippe.waroquiers@skynet.be)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11748
This commit is contained in:
parent
8498c6ff81
commit
619a546991
@ -130,7 +130,7 @@ void transfer_register (ThreadId tid, int abs_regno, void * buf,
|
||||
switch (regno) {
|
||||
// numbers here have to match the order of regs above
|
||||
// Attention: gdb order does not match valgrind order.
|
||||
case 0: *mod = False; //GDBTD??? { "pswm", 0, 64 },
|
||||
case 0: *mod = False; break; //GDBTD??? { "pswm", 0, 64 },
|
||||
case 1: VG_(transfer) (&s390x->guest_IA, buf, dir, size, mod); break;
|
||||
case 2: VG_(transfer) (&s390x->guest_r0, buf, dir, size, mod); break;
|
||||
case 3: VG_(transfer) (&s390x->guest_r1, buf, dir, size, mod); break;
|
||||
|
||||
@ -1822,6 +1822,7 @@ void report_pid (int pid)
|
||||
if (cmdline[i] == 0)
|
||||
cmdline[i] = ' ';
|
||||
cmdline[sz] = 0;
|
||||
close (fd);
|
||||
}
|
||||
fprintf(stderr, "use --pid=%d for %s\n", pid, cmdline);
|
||||
fflush(stderr);
|
||||
|
||||
@ -34,6 +34,24 @@ Some tests implies to have a vgdb "ptrace invoker" capable.
|
||||
The prerequisite are established during make regtest (using marker files).
|
||||
Each test verifies the prerequisite using the prereq: line.
|
||||
|
||||
In case of failing tests
|
||||
------------------------
|
||||
gdbserver tests are often failing due to (irrelevant) differences
|
||||
depending on the gdb version and/or the OS version.
|
||||
Such irrelevant differences have to be filtered by gdbserver_tests/filter_gdb.
|
||||
|
||||
To report such problems, the best is to re-run the gdbserver tests
|
||||
the following way:
|
||||
perl tests/vg_regtest --keep-unfiltered gdbserver_tests
|
||||
|
||||
Then file a bug in bugzilla, giving the following information:
|
||||
output of
|
||||
gdbserver_tests/gdb --version
|
||||
uname -a
|
||||
cat /etc/issue
|
||||
valgrind --version (and/or svn version)
|
||||
and attach a tar file containing all the *.out files in gdbserver_tests
|
||||
directory
|
||||
|
||||
Naming conventions:
|
||||
-------------------
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
# (i.e. SIGBUG, Test 3). Other tests will be succesful, because signals
|
||||
# are eventually passed.
|
||||
prog: ../none/tests/faultstatus
|
||||
vgopts: --tool=memcheck --vgdb=yes --vgdb-error=0 --vgdb-prefix=./vgdb-prefix-mcsignopass
|
||||
vgopts: --tool=memcheck --vgdb=full --vgdb-error=0 --vgdb-prefix=./vgdb-prefix-mcsignopass
|
||||
stderr_filter: filter_memcheck_monitor
|
||||
progB: gdb
|
||||
argsB: --quiet -l 60 --nx ../none/tests/faultstatus
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# test the signal handling, when signals are passed to the Valgrind guest.
|
||||
prog: ../none/tests/faultstatus
|
||||
vgopts: --tool=memcheck --vgdb=yes --vgdb-error=0 --vgdb-prefix=./vgdb-prefix-mcsigpass
|
||||
vgopts: --tool=memcheck --vgdb=full --vgdb-error=0 --vgdb-prefix=./vgdb-prefix-mcsigpass
|
||||
stderr_filter: filter_memcheck_monitor
|
||||
progB: gdb
|
||||
argsB: --quiet -l 60 --nx ../none/tests/faultstatus
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user