Yao Qi | 21 Jun 2012 09:55
Gravatar

[PATCH] [testsuite] Fix in board_file native-gdbserver.exp

Hi,
When I use following statement in test case with native-gdbserver.exp board_file,
I got one error,

  remote_exec target "sh -c { \[ -f /bin/ls \] }"

  WARNING: program timed out.
  FAIL: gdb.base/foo.exp: exists /bin/ls

Examine the verbose log shows that dejagnu thinks native-gdbserver is a
remote target, and will try to use remote method, rsh for example, to
access files,

 Executing on target: sh -c { [ -f /bin/ls ] }    (timeout = 300)
 calling is_remote target
 board_info build name
 getting qiyao name
 board_info host name
 getting qiyao name
 calling is_remote native-gdbserver
 board_info build name
 getting qiyao name
 board_info host name
 getting qiyao name
 board_info native-gdbserver exists isremote
 board_info native-gdbserver isremote
 getting native-gdbserver isremote
 board is native-gdbserver, isremote is 1

This patch add new proc ${board}_exec to wrap remote_exec with setting
(Continue reading)

Pedro Alves | 21 Jun 2012 16:01
Picon
Favicon

Re: [PATCH] [testsuite] Fix in board_file native-gdbserver.exp

On 06/21/2012 08:55 AM, Yao Qi wrote:

> This patch add new proc ${board}_exec to wrap remote_exec with setting
> isremote to 0 temporarily.  Running test suite with native-gdbserver,
> no change on result.
> 
> Note that such problem doesn't exist on board_file
> native-extended-gdbserver.exp because isremote always is set to 0 in it.

I think native-stdio-gdbserver.exp does have the same problem, though?

> gdb/testsuite:
> 
> 2012-06-21  Yao Qi  <yao <at> codesourcery.com>
> 
> 	* boards/native-gdbserver.exp: New proc ${board}_exec.

Okay, thanks.

--

-- 
Pedro Alves

Yao Qi | 22 Jun 2012 09:49
Gravatar

Re: [PATCH] [testsuite] Fix in board_file native-gdbserver.exp

On Thursday, June 21, 2012 03:01:45 PM Pedro Alves wrote:
> I think native-stdio-gdbserver.exp does have the same problem, though?
> 

Yes, I can reproduce the same problem on board file native-stdio-
gdbserver.exp.  I copy the same stuff into native-stdio-gdbserver.exp, and run 
testsuite against it, no change on test result.

> > gdb/testsuite:
> > 
> >
> > 2012-06-21  Yao Qi  <yao <at> codesourcery.com>
> >
> > 
> >
> >       * boards/native-gdbserver.exp: New proc ${board}_exec.
> 
> Okay, thanks.

Here is what I committed.

--

-- 
Yao (齐尧)

gdb/testsuite:

2012-06-22  Yao Qi  <yao <at> codesourcery.com>

	* boards/native-gdbserver.exp: New proc ${board}_exec.
	* boards/native-stdio-gdbserver.exp: Likewise.
(Continue reading)


Gmane