From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7954 invoked by alias); 12 Sep 2011 17:24:55 -0000 Received: (qmail 7944 invoked by uid 22791); 12 Sep 2011 17:24:54 -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 mtagate2.uk.ibm.com (HELO mtagate2.uk.ibm.com) (194.196.100.162) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Sep 2011 17:24:40 +0000 Received: from d06nrmr1307.portsmouth.uk.ibm.com (d06nrmr1307.portsmouth.uk.ibm.com [9.149.38.129]) by mtagate2.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p8CHOcEY023937 for ; Mon, 12 Sep 2011 17:24:38 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1307.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p8CHOc2d2261036 for ; Mon, 12 Sep 2011 18:24:38 +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 p8CHObii019094 for ; Mon, 12 Sep 2011 11:24:38 -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 p8CHOaKe019074; Mon, 12 Sep 2011 11:24:36 -0600 Message-Id: <201109121724.p8CHOaKe019074@d06av02.portsmouth.uk.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Mon, 12 Sep 2011 19:24:36 +0200 Subject: Re: How to use gdbserver for X86 host with arm-linux target ? To: pedro@codesourcery.com (Pedro Alves) Date: Mon, 12 Sep 2011 17:24:00 -0000 From: "Ulrich Weigand" Cc: gdb@sourceware.org, karl.leplat@parrot.com (karl leplat) In-Reply-To: <201109121448.18875.pedro@codesourcery.com> from "Pedro Alves" at Sep 12, 2011 02:48:18 PM 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/msg00037.txt.bz2 Pedro Alves wrote: > On Monday 12 September 2011 12:24:01, karl leplat wrote: > > Hi, > > > > When i inserted a hardware breakpoint, i got the result : > > > > Side gdb: > > Warning: > > Cannot insert hardware breakpoint 1. > > Could not insert hardware breakpoints: > > You may have requested too many hardware breakpoints/watchpoints. > > > > Side gdbserver: > > In the file: "gdbserver/linux-arm-low.c" , i have seen that the target > > has not registered the function insert_point. > > > > Is it normal ? > > Yes. The arm-linux gdbserver port was never taught about > managing breakpoints itself. When that callback is not installed, > gdb itself inserts breakpoints in program memory, using regular > memory writes to plant the breakpoint insn. > > > Is there a solution ? > > There's code in native arm port of gdb to support hardware breakpoints > and watchpoints (arm-linux-nat.c). Someone interested should be able > to port it to gdbserver. As it happens, this is what I've been working on recently. I've just posted a patch implementing this feature: http://sourceware.org/ml/gdb-patches/2011-09/msg00200.html Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com