From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18295 invoked by alias); 12 Jan 2011 15:08:40 -0000 Received: (qmail 18286 invoked by uid 22791); 12 Jan 2011 15:08:39 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 12 Jan 2011 15:08:35 +0000 Received: from wpaz37.hot.corp.google.com (wpaz37.hot.corp.google.com [172.24.198.101]) by smtp-out.google.com with ESMTP id p0CF8Wlm028517 for ; Wed, 12 Jan 2011 07:08:32 -0800 Received: from vws8 (vws8.prod.google.com [10.241.21.136]) by wpaz37.hot.corp.google.com with ESMTP id p0CF8Omg010581 for ; Wed, 12 Jan 2011 07:08:30 -0800 Received: by vws8 with SMTP id 8so173374vws.26 for ; Wed, 12 Jan 2011 07:08:30 -0800 (PST) Received: by 10.229.188.21 with SMTP id cy21mr974220qcb.16.1294844910571; Wed, 12 Jan 2011 07:08:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.7.132 with HTTP; Wed, 12 Jan 2011 07:08:00 -0800 (PST) In-Reply-To: <201101121003.37871.pedro@codesourcery.com> References: <20110111232641.AE3D5190C55@elbrus2.mtv.corp.google.com> <4D2D3E94.4070509@codesourcery.com> <201101121003.37871.pedro@codesourcery.com> From: Paul Pluzhnikov Date: Wed, 12 Jan 2011 15:19:00 -0000 Message-ID: Subject: Re: [patch] Add tests for JIT debugging interface To: Pedro Alves Cc: gdb-patches@sourceware.org, Yao Qi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-01/txt/msg00258.txt.bz2 On Wed, Jan 12, 2011 at 2:03 AM, Pedro Alves wrote: > On Wednesday 12 January 2011 05:39:32, Yao Qi wrote: >> Test cases work well in native GDB. =A0Does gdbserver have JIT debugging >> interface also? =A0If not, we probably should skip this test for remote >> mode or kfail it. > > The JIT debugging interface is all implemented in common code, > so it should work against remote/gdbserver as well (though I haven't > tried it). =A0A gdb_load_shlibs call to copy the shlib to the > target appears to be missing though. I tried running the test with gdbserver-native, and it failed, because 'set args' doesn't work in server mode (AFAICT). I grepped through *.exp in search of examples of how to run programs that require args under gdbserver, but didn't find any. I want something like if {[is_remote host]} { spawn gdbserver :2345 exe shlib 1 } else { spawn gdb --args exe shlib 1 } Is there a "standard" way to achieve this? > You want notice it missing > if you do the usual gdbserver running on the same machine as > gdb testing (*). Right. I didn't get that far yet. Are there instructions for running with gdbserver on different host? Thanks, --=20 Paul Pluzhnikov