From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29378 invoked by alias); 14 Sep 2011 12:27:52 -0000 Received: (qmail 29369 invoked by uid 22791); 14 Sep 2011 12:27:51 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,MSGID_FROM_MTA_HEADER,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mtagate7.uk.ibm.com (HELO mtagate7.uk.ibm.com) (194.196.100.167) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Sep 2011 12:27:33 +0000 Received: from d06nrmr1507.portsmouth.uk.ibm.com (d06nrmr1507.portsmouth.uk.ibm.com [9.149.38.233]) by mtagate7.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p8ECRTWV001135 for ; Wed, 14 Sep 2011 12:27:29 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1507.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p8ECRSIb2039986 for ; Wed, 14 Sep 2011 13:27:28 +0100 Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p8ECRSBf008950 for ; Wed, 14 Sep 2011 06:27:28 -0600 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with SMTP id p8ECRQ9Z008918; Wed, 14 Sep 2011 06:27:27 -0600 Message-Id: <201109141227.p8ECRQ9Z008918@d06av02.portsmouth.uk.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Wed, 14 Sep 2011 14:27:26 +0200 Subject: Re: How to use gdbserver for X86 host with arm-linux target ? To: dje@google.com (Doug Evans) Date: Wed, 14 Sep 2011 12:27:00 -0000 From: "Ulrich Weigand" Cc: pedro@codesourcery.com (Pedro Alves), gdb@sourceware.org, karl.leplat@parrot.com (karl leplat) In-Reply-To: from "Doug Evans" at Sep 13, 2011 10:28:14 AM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: 2011-09/txt/msg00041.txt.bz2 Doug Evans wrote: > On Mon, Sep 12, 2011 at 6:48 AM, Pedro Alves wrote: > > There's code in native arm port of gdb to support hardware breakpoints > > and watchpoints (arm-linux-nat.c). =A0Someone interested should be able > > to port it to gdbserver. > > Seems like this another example where gdb suffers from having two code > bases (gdb, gdbserver) to implement the same functionality. Yes. What I'd really like to see in the long term would be to move gdbserver over to use the same "struct target_ops" interface as GDB to talk to its platform back ends, and then provide native targets as stand-alone implementations of that interface that can be linked with both GDB and gdbserver. The remote protocol would then become a 1:1 marshalling of target_ops ... But that's a significant effort, and would require a bit of cleanup of target_ops first, I guess. Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com