From: Daniel Jacobowitz <drow@false.org>
To: Denis PILAT <denis.pilat@st.com>
Cc: gdb@sourceware.org
Subject: Re: remote validation
Date: Thu, 21 Sep 2006 14:33:00 -0000 [thread overview]
Message-ID: <20060921143325.GA24126@nevyn.them.org> (raw)
In-Reply-To: <4512A12F.8020507@st.com>
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
next prev parent reply other threads:[~2006-09-21 14:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-21 14:28 Denis PILAT
2006-09-21 14:33 ` Daniel Jacobowitz [this message]
2006-09-21 20:51 ` gdbserver, was " Michael Snyder
2006-09-21 20:56 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060921143325.GA24126@nevyn.them.org \
--to=drow@false.org \
--cc=denis.pilat@st.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox