public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Remove ${board}_file from remote-stdio-gdbserver.exp
@ 2023-03-21 11:47 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2023-03-21 11:47 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ccd7caeea05eec1d43a1e63a7784db3570c02db0

commit ccd7caeea05eec1d43a1e63a7784db3570c02db0
Author: Tom de Vries <tdevries@suse.de>
Date:   Tue Mar 21 12:47:28 2023 +0100

    [gdb/testsuite] Remove ${board}_file from remote-stdio-gdbserver.exp
    
    Looking at the implementation of ${board}_file in remote-stdio-gdbserver.exp,
    I don't see a relevant difference with the implementation of standard_file
    in dejagnu.
    
    Simplify the board by removing ${board}_file.
    
    Tested on x86_64-linux, by running gdb.testsuite/board-sanity.exp.

Diff:
---
 gdb/testsuite/boards/remote-stdio-gdbserver.exp | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/gdb/testsuite/boards/remote-stdio-gdbserver.exp b/gdb/testsuite/boards/remote-stdio-gdbserver.exp
index c4e29e402fe..1007b199106 100644
--- a/gdb/testsuite/boards/remote-stdio-gdbserver.exp
+++ b/gdb/testsuite/boards/remote-stdio-gdbserver.exp
@@ -86,14 +86,6 @@ proc get_target_remote_pipe_cmd { } {
     return "$rsh_cmd $gdbserver --once stdio $target_exec"
 }
 
-proc ${board}_file { dest op args } {
-    if { $op == "delete" } {
-	set res [remote_exec target "rm -f $args"]
-	return [lindex $res 0]
-    }
-    return [eval [list standard_file $dest $op] $args]
-}
-
 proc ${board}_spawn { board cmd } {
     global board_info

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-21 11:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-21 11:47 [binutils-gdb] [gdb/testsuite] Remove ${board}_file from remote-stdio-gdbserver.exp Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).