ftmemsim-valgrind/gdbserver_tests/mcbreak.stdoutB.exp
Julian Seward b37b05d214 Improvements for testing and compilation breakage for the GDB server
on various platforms:

* In all gdbserver_tests using gdb:
  Made a more general way to remove the initial start message.

* tests using threads burning cpu modified to have only 1 thread.
  This makes them independent of the scheduler fairness.

* filter_gdb and filter_vgdb enhanced to anonymise
    some debian 6.0/ppc specific things
    some s390x/gdb 7.0, gdb 7.1  specific things

* vgdb.c: added an #include <linux/ptrace.h> to fix compilation
  on s390x fedora and suse. (Christian Boerntrager)

* fixed a bug in valgrind-low.c debug log :
  when a register size is 0, its image cannot be output (and register
  should not be transferred).

* added a parameter --keep-unfiltered to vg_regtest.in
  This will make it easier to update filter_gdb:
  in case gdbserver_tests are failing due to "artificial"
  differences to be filtered, re-run the tests using:
     perl tests/vg_regtest --keep-unfiltered gdbserver_tests
  Then a tar file with all the *.out in gdbserver_tests
  will allow me to better/faster update the filter_gdb.

* made a better detection of a working PTRACE_GETREGS at compile time
  and/or at run-time.

This is the patch on bug 214909 comment 69.
(Philippe Waroquiers, philippe.waroquiers@skynet.be)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11740
2011-05-10 11:01:07 +00:00

55 lines
1.6 KiB
Plaintext

Breakpoint 1 at 0x........: file t.c, line 112.
Breakpoint 2 at 0x........: file t.c, line 117.
Continuing.
Breakpoint 1, main (argc=1, argv=0x........) at t.c:112
112 breakme(__LINE__); //break1
breakme (line=112) at t.c:100
100 if (line > 1000)
old_pc has changed after step
102 }
old_pc has changed after step
main (argc=1, argv=0x........) at t.c:113
113 for (i = len-1; i >= 0; i=i-2)
old_pc has changed after step
114 undefined[i] = undef;
$1 = void
$2 = "undefined"
$3 = 8
113 for (i = len-1; i >= 0; i=i-2)
old_pc has changed after step
114 undefined[i] = undef;
old_pc has changed after step
113 for (i = len-1; i >= 0; i=i-2)
$4 = void
$5 = "undefi?e?"
$6 = 6
114 undefined[i] = undef;
$7 = void
$8 = "undefi?e?"
$9 = 4
113 for (i = len-1; i >= 0; i=i-2)
$10 = void
$11 = "unde?i?e?"
$12 = 4
$13 = 1
$14 = void
Continuing.
Breakpoint 2, main (argc=1, argv=0x........) at t.c:117
117 breakme(__LINE__); //break2
breakme (line=117) at t.c:100
100 if (line > 1000)
Run till exit from #0 breakme (line=117) at t.c:100
main (argc=1, argv=0x........) at t.c:119
119 if (argc > 1)
Delete all breakpoints? (y or n) [answered Y; input not from terminal]
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x........ in make_error (s=0x........ "called from level") at t.c:40
40 if (int_und == 0)
43 printf ("%s int_und is not zero\n", s);
old_pc has changed after step
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x........ in make_error (s=0x........ "called from main") at t.c:40
40 if (int_und == 0)