2012/5/11 Peter Gavin <[email protected]>:
> On Fri, May 11, 2012 at 3:47 PM, Peter Gavin <[email protected]> wrote:
>> Thanks.  Yeah, I didn't think of using a site.exp.  I was trying to do
>> it just by modifying the files in the gcc source tree.  I wanted it to
>> be automatically used without having to use manual configuration, do
>> you know if that's possible?
>
> Ok, so I figured something that is nearly what I wanted.
>
> I modified dejagnu, and added an or1k-sim.exp file to the baseboards
> directory, and or1k.exp to the config directory.
>
> Then I ran make check in the gcc directory with
> RUNTESTFLAGS=--target_board=or1k-sim and it used the simulator the way
> I wanted.
>
> -Pete
> _______________________________________________
> OpenRISC mailing list
> [email protected]
> http://lists.openrisc.net/listinfo/openrisc

Hi Peter,

When I run make check in the gdb directory, I get a lot of "ERROR:
Couldn't set target for simulator." is it normal ?
This is what I have for now: http://pastebin.com/haU4ALsg

                === gdb tests ===

Schedule of variations:
    or1k-sim

Running target or1k-sim
Using /usr/local/share/dejagnu/baseboards/or1k-sim.exp as board
description file for target.
Using /usr/local/share/dejagnu/config/sim.exp as generic interface
file for target.
Using /usr/local/share/dejagnu/baseboards/basic-sim.exp as board
description file for target.
Using ../../../or1k-src_Franck79/gdb/testsuite/config/sim.exp as
tool-and-target-specific interface file.
Running ../../../or1k-src_Franck79/gdb/testsuite/gdb.ada/aliased_array.exp ...
Running ../../../or1k-src_Franck79/gdb/testsuite/gdb.ada/array_bounds.exp ...
.....
Running 
../../../or1k-src_Franck79/gdb/testsuite/gdb.ada/info_locals_renaming.exp
...
Running ../../../or1k-src_Franck79/gdb/testsuite/gdb.ada/info_types.exp ...
ERROR: Couldn't set target for simulator.
Running ../../../or1k-src_Franck79/gdb/testsuite/gdb.ada/int_deref.exp ...
Running ../../../or1k-src_Franck79/gdb/testsuite/gdb.ada/interface.exp ...
.......
Running 
../../../or1k-src_Franck79/gdb/testsuite/gdb.mi/mi-breakpoint-changed.exp
...
Running ../../../or1k-src_Franck79/gdb/testsuite/gdb.mi/mi-cli.exp ...
ERROR: Unable to select sim target (timeout)
ERROR: Undefined command "-interpreter-exec console "set args foobar"".
FAIL: gdb.mi/mi-cli.exp: -interpreter-exec console "show args"
FAIL: gdb.mi/mi-cli.exp: continue to callee4 (MI error)
FAIL: gdb.mi/mi-cli.exp: continue to callee4 (timeout)
FAIL: gdb.mi/mi-cli.exp: -interpreter-exec console "up"
FAIL: gdb.mi/mi-cli.exp: -interpreter-exec console "down"
FAIL: gdb.mi/mi-cli.exp: -interpreter-exec console "frame 2"
FAIL: gdb.mi/mi-cli.exp: -stack-select-frame 0
FAIL: gdb.mi/mi-cli.exp: check *stopped from CLI command (MI error)
FAIL: gdb.mi/mi-cli.exp: check *stopped from CLI command (timeout)
FAIL: gdb.mi/mi-cli.exp: -exec-continue to line $line_main_hello (MI error)
FAIL: gdb.mi/mi-cli.exp: -exec-continue to line $line_main_hello (timeout)
FAIL: gdb.mi/mi-cli.exp: 34 next: run (the program is no longer running)
FAIL: gdb.mi/mi-cli.exp: 34 next: stop (timeout)
FAIL: gdb.mi/mi-cli.exp: -interpreter-exec console "list" at
basics.c:$line_main_return
FAIL: gdb.mi/mi-cli.exp: -interpreter-exec console "set $pc=0x0"
Running ../../../or1k-src_Franck79/gdb/testsuite/gdb.mi/mi-cmd-param-changed.exp
...
ERROR: Unable to select sim target (timeout)
ERROR: Undefined command "set scheduler-locking on".
FAIL: gdb.mi/mi-cmd-param-changed.exp: cmd param: "set scheduler-locking off"
FAIL: gdb.mi/mi-cmd-param-changed.exp: cmd param: "set scheduler-locking step"
FAIL: gdb.mi/mi-cmd-param-changed.exp: cmd param: interpreter-exec
"set scheduler-locking on"
FAIL: gdb.mi/mi-cmd-param-changed.exp: cmd param: interpreter-exec
"set scheduler-locking off"
FAIL: gdb.mi/mi-cmd-param-changed.exp: cmd param: interpreter-exec
"set scheduler-locking step"
FAIL: gdb.mi/mi-cmd-param-changed.exp: cmd param: "set
scheduler-locking on" no event (requested by MI)
FAIL: gdb.mi/mi-cmd-param-changed.exp: cmd param: "set
scheduler-locking step" no event (requested by MI interp)
FAIL: gdb.mi/mi-cmd-param-changed.exp: cmd param: "set
scheduler-locking stepr" no event
Running ../../../or1k-src_Franck79/gdb/testsuite/gdb.mi/mi-console.exp ...
ERROR: Unable to select sim target (timeout)
ERROR: Undefined command "220-exec-next".
FAIL: gdb.mi/mi-console.exp: finished step over hello (unknown output
after running)
Running ../../../or1k-src_Franck79/gdb/testsuite/gdb.mi/mi-disassemble.exp ...
.....

It's been running for 10 hours......

Franck.
_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc

Reply via email to