From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13435 invoked by alias); 21 Sep 2006 14:33:41 -0000 Received: (qmail 13401 invoked by uid 22791); 21 Sep 2006 14:33:40 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 21 Sep 2006 14:33:29 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GQPcD-0006Kb-H9; Thu, 21 Sep 2006 10:33:25 -0400 Date: Thu, 21 Sep 2006 14:33:00 -0000 From: Daniel Jacobowitz To: Denis PILAT Cc: gdb@sourceware.org Subject: Re: remote validation Message-ID: <20060921143325.GA24126@nevyn.them.org> Mail-Followup-To: Denis PILAT , gdb@sourceware.org References: <4512A12F.8020507@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4512A12F.8020507@st.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-09/txt/msg00120.txt.bz2 On Thu, Sep 21, 2006 at 04:26:55PM +0200, Denis PILAT wrote: > I'd like to run a validation for a gdb hosted on linux and connected to > a gdbserver also hosted on linux. > To simplify the target is linux as well. > > Is there a mean to configure the gdb testsuite so that it runs a > gdbserver and connect the gdb to it ? Yes. There's no board file in the standard DejaGNU, but all the configury is there. Here's mine; you could probably strip out some of this. =====snip====== # gdbserver running over ssh. load_generic_config "gdbserver"; process_multilib_options ""; # The default compiler for this target. #set_board_info compiler "[find_gcc]"; # This is a gross hack. We need to use the default compiler setting # when testing GCC, or get_multilibs will break. if { $tool == "gdb" } { set_board_info assembler "arm-none-linux-gnueabi-as"; set_board_info linker "arm-none-linux-gnueabi-ld"; set_board_info compiler "arm-none-linux-gnueabi-gcc"; set_board_info c++compiler "arm-none-linux-gnueabi-g++"; } set_board_info rsh_prog /usr/bin/ssh set_board_info rcp_prog /usr/bin/scp set_board_info protocol standard set_board_info hostname myboardname set_board_info username tools #set_board_info gdb_server_prog /usr/bin/gdbserver set_board_info gdb_server_prog /home/tools/gdbserver # We will be using the standard GDB remote protocol set_board_info gdb_protocol "remote" # Name of the computer whose socket will be used, if required. set_board_info sockethost "myboardname:" # Use techniques appropriate to a stub set_board_info use_gdb_stub 1; # This gdbserver can only run a process once per session. set_board_info gdb,do_reload_on_run 1; # There's no support for argument-passing (yet). set_board_info noargs 1 # Can't do input (or output) in the current gdbserver. set_board_info gdb,noinferiorio 1 # Can't do hardware watchpoints, in general set_board_info gdb,no_hardware_watchpoints 1; global board_info set board_info(myboardname,rsh_prog) /usr/bin/ssh set board_info(myboardname,rcp_prog) /usr/bin/scp ====snip==== -- Daniel Jacobowitz CodeSourcery