Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Some issue with reverse testsuite
@ 2009-06-29  7:05 Hui Zhu
  2009-06-29 18:29 ` Michael Snyder
  0 siblings, 1 reply; 4+ messages in thread
From: Hui Zhu @ 2009-06-29  7:05 UTC (permalink / raw)
  To: Michael Snyder; +Cc: gdb

Hi Michael,

I try the reverse testsuite in cvs-head, what I got is:
make check RUNTESTFLAGS=break-reverse.exp
Nothing to be done for all...
rootme=`pwd`; export rootme; \
        srcdir=../src/gdb/testsuite ; export srcdir ; \
        EXPECT=`if [ -f ${rootme}/../../expect/expect ] ; then echo
${rootme}/../../expect/expect ; else echo expect ; fi` ; export EXPECT
; \
        EXEEXT= ; export EXEEXT ; \
        LD_LIBRARY_PATH=$rootme/../../expect:$rootme/../../libstdc++:$rootme/../../tk/unix:$rootme/../../tcl/unix:$rootme/../../bfd:$rootme/../../opcodes:$LD_LIBRARY_PATH;
\
        export LD_LIBRARY_PATH; \
        if [ -f ${rootme}/../../expect/expect ] ; then  \
          TCL_LIBRARY=${srcdir}/../../tcl/library ; \
          export TCL_LIBRARY ; fi ; \
        ` if [ -f ${srcdir}/../../dejagnu/runtest ]; then echo
${srcdir}/../../dejagnu/runtest; else if [ "i686-pc-linux-gnu" =
"i686-pc-linux-gnu" ]; then echo runtest; else t='s,x,x,'; echo
runtest | sed -e $t; fi; fi` break-reverse.exp
Test Run By teawater on Mon Jun 29 15:04:57 2009
Native configuration is i686-pc-linux-gnu

                === gdb tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file
for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using ../src/gdb/testsuite/config/unix.exp as tool-and-target-specific
interface file.
Running ../src/gdb/testsuite/gdb.reverse/break-reverse.exp ...

                === gdb Summary ===

/usr/local/bin/gdb version  6.8.50.20090629-cvs -nw -nx



cat gdb.log
Test Run By teawater on Mon Jun 29 15:04:57 2009
Native configuration is i686-pc-linux-gnu

		=== gdb tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file
for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using ../src/gdb/testsuite/config/unix.exp as tool-and-target-specific
interface file.
Running ../src/gdb/testsuite/gdb.reverse/break-reverse.exp ...
testcase ../src/gdb/testsuite/gdb.reverse/break-reverse.exp completed
in 0 seconds

		=== gdb Summary ===

Executing on host: gdb -nw -nx --command gdb_cmd    (timeout = 300)
GNU gdb (GDB) 6.8.50.20090629-cvs
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
/usr/local/bin/gdb version  6.8.50.20090629-cvs -nw -nx

runtest completed at Mon Jun 29 15:04:57 2009


It looks like gdb do nothing.  Are you sure it works OK?

Thanks,
Hui


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Some issue with reverse testsuite
  2009-06-29  7:05 Some issue with reverse testsuite Hui Zhu
@ 2009-06-29 18:29 ` Michael Snyder
  2009-06-29 18:36   ` Daniel Jacobowitz
  2009-06-29 21:52   ` Hui Zhu
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Snyder @ 2009-06-29 18:29 UTC (permalink / raw)
  To: Hui Zhu; +Cc: gdb

[-- Attachment #1: Type: text/plain, Size: 668 bytes --]

Hui Zhu wrote:
> Hi Michael,
> 
> I try the reverse testsuite in cvs-head, what I got is:

[...]

> It looks like gdb do nothing.  Are you sure it works OK?

You need to use a board description file to enable them.
Oh damn -- I don't know where this stuff is documented.

Guys -- how do we usually initiate a new maintainer into
the mysteries of dejagnu?

Hui -- let me tell you the easy (and wrong) way to do it,
just to avoid complexity.  Copy the attached file into
/usr/share/dejagnu/baseboards (you'll need to be root).

Then add "--target_board=precord" to your RUNTESTFLAGS,
eg. like this:

   make check RUNTESTFLAGS="step-reverse.exp --target_board=precord"


[-- Attachment #2: precord.exp --]
[-- Type: text/plain, Size: 161 bytes --]

# Testing programs using process record/replay (precord)

load_base_board_description "unix"

set_board_info gdb,can_reverse 1
set_board_info gdb,use_precord 1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Some issue with reverse testsuite
  2009-06-29 18:29 ` Michael Snyder
@ 2009-06-29 18:36   ` Daniel Jacobowitz
  2009-06-29 21:52   ` Hui Zhu
  1 sibling, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2009-06-29 18:36 UTC (permalink / raw)
  To: Michael Snyder; +Cc: Hui Zhu, gdb

On Mon, Jun 29, 2009 at 11:27:05AM -0700, Michael Snyder wrote:
> Guys -- how do we usually initiate a new maintainer into
> the mysteries of dejagnu?

I don't know, but you ought to put this on the wiki.  See the
gdbserver example already there.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Some issue with reverse testsuite
  2009-06-29 18:29 ` Michael Snyder
  2009-06-29 18:36   ` Daniel Jacobowitz
@ 2009-06-29 21:52   ` Hui Zhu
  1 sibling, 0 replies; 4+ messages in thread
From: Hui Zhu @ 2009-06-29 21:52 UTC (permalink / raw)
  To: Michael Snyder; +Cc: gdb

Thanks for your help Michael.  I got right message now.

Maybe you can update this to http://sourceware.org/gdb/wiki/ReversibleDebugging

Hui

On Tue, Jun 30, 2009 at 02:27, Michael Snyder<msnyder@vmware.com> wrote:
> Hui Zhu wrote:
>>
>> Hi Michael,
>>
>> I try the reverse testsuite in cvs-head, what I got is:
>
> [...]
>
>> It looks like gdb do nothing.  Are you sure it works OK?
>
> You need to use a board description file to enable them.
> Oh damn -- I don't know where this stuff is documented.
>
> Guys -- how do we usually initiate a new maintainer into
> the mysteries of dejagnu?
>
> Hui -- let me tell you the easy (and wrong) way to do it,
> just to avoid complexity.  Copy the attached file into
> /usr/share/dejagnu/baseboards (you'll need to be root).
>
> Then add "--target_board=precord" to your RUNTESTFLAGS,
> eg. like this:
>
>  make check RUNTESTFLAGS="step-reverse.exp --target_board=precord"
>
>
> # Testing programs using process record/replay (precord)
>
> load_base_board_description "unix"
>
> set_board_info gdb,can_reverse 1
> set_board_info gdb,use_precord 1
>
>
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-06-29 21:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-29  7:05 Some issue with reverse testsuite Hui Zhu
2009-06-29 18:29 ` Michael Snyder
2009-06-29 18:36   ` Daniel Jacobowitz
2009-06-29 21:52   ` Hui Zhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox