From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3720 invoked by alias); 16 Jan 2008 23:30:25 -0000 Received: (qmail 3712 invoked by uid 22791); 16 Jan 2008 23:30:25 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 16 Jan 2008 23:30:06 +0000 Received: from zps76.corp.google.com (zps76.corp.google.com [172.25.146.76]) by smtp-out.google.com with ESMTP id m0GNU0se009028 for ; Wed, 16 Jan 2008 15:30:00 -0800 Received: from wa-out-1112.google.com (wagn4.prod.google.com [10.114.215.4]) by zps76.corp.google.com with ESMTP id m0GNU0H1009496 for ; Wed, 16 Jan 2008 15:30:00 -0800 Received: by wa-out-1112.google.com with SMTP id n4so2323575wag.6 for ; Wed, 16 Jan 2008 15:29:59 -0800 (PST) Received: by 10.114.15.1 with SMTP id 1mr1606090wao.27.1200526199910; Wed, 16 Jan 2008 15:29:59 -0800 (PST) Received: by 10.115.107.7 with HTTP; Wed, 16 Jan 2008 15:29:59 -0800 (PST) Message-ID: Date: Wed, 16 Jan 2008 23:30:00 -0000 From: "Doug Evans" To: gdb@sourceware.org Subject: Running testsuite on linux with gdbserver. MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00136.txt.bz2 If I hack dejagnu/framework.exp:is_remote to treat linux-gdbserver as a non-remote target, the following works: bash$ runtest --tool gdb --target_board linux-gdbserver target = i686-linux Here is the hack: proc is_remote { board } { [...] + if { $board == "linux-gdbserver" } { + verbose "board is $board, not remote" 3 + return 0; + } # We're on the "build". The check for the empty string is just for # paranoia's sake--we shouldn't ever get one. "unix" is a magic # string that should really go away someday. if { $board == "build" || $board == "unix" || $board == "" } { verbose "board is $board, not remote" 3 return 0 } Note that dejagnu thinks unix is remote [board_info(unix,isremote) == 1] but it still works because of the above hack to watch for $board == "unix". Do folks ever test gdbserver this way? Am I doing something wrong that makes the above hack necessary?