From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28092 invoked by alias); 14 Jan 2009 09:52:19 -0000 Received: (qmail 27871 invoked by uid 22791); 14 Jan 2009 09:52:18 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_35,J_CHICKENPOX_43 X-Spam-Check-By: sourceware.org Received: from nwd2mail11.analog.com (HELO nwd2mail11.analog.com) (137.71.25.57) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Jan 2009 09:51:24 +0000 Received: from nwd2mhb2.analog.com ([137.71.6.12]) by nwd2mail11.analog.com with ESMTP; 14 Jan 2009 04:51:22 -0500 Received: from nwd2exm4.ad.analog.com (nwd2exm4.ad.analog.com [10.64.53.123]) by nwd2mhb2.analog.com (8.9.3 (PHNE_28810+JAGae91741)/8.9.3) with ESMTP id EAA16205; Wed, 14 Jan 2009 04:51:23 -0500 (EST) Received: from chinexm1.ad.analog.com ([10.99.27.42]) by nwd2exm4.ad.analog.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 14 Jan 2009 04:51:21 -0500 Received: from [10.99.29.103] ([10.99.29.103]) by chinexm1.ad.analog.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 14 Jan 2009 17:50:59 +0800 Message-ID: <496DB582.4060201@analog.com> Date: Wed, 14 Jan 2009 09:52:00 -0000 From: Jie Zhang User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: Jie Zhang CC: Keith Seitz , insight@sourceware.org Subject: Re: Test insight with gdbserver References: <496B1CC3.9040905@analog.com> <496B7274.5060705@redhat.com> <496BFEBB.3030404@analog.com> In-Reply-To: <496BFEBB.3030404@analog.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00007.txt.bz2 Jie Zhang wrote: > Keith Seitz wrote: >> Jie Zhang wrote: >>> Is there a way to run gdb.gdbtk with gdbserver? It seems to me that >>> gdb.gdbtk cannot load program using gdbserver. Is there anything I >>> missed? >> >> If this is supported by gdb, it should work. Can you run gdb's test >> suite with gdbserver as the target? What does your site.exp look like? >> > I can run gdb's testsuite with gdbserver. But I cannot do the same for > insight. > > It seems that insight-support.exp can only deal with four target types: > monitor, simulator, sid and native. Neither of them will start gdbserver > on target machine. It looks to me that gdb.gdbtk sets file by using > gdbtk_test_file and then uses the gdb commands in info(init), > info(target), info(load) and info(run) to start test. It does not use > gdb_load which is used in the other part of gdb testsuite. > I now have a patch which works for me. To contribute it to Insight, is there any paper work about copyright I need to do? My code can be assigned to FSF. But the copyright line of the file I touch is copyrighted by Red Hat (insight-support.exp): # GDB Testsuite Support for Insight. # # Copyright 2001, 2004 Red Hat, Inc. Jie