From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23637 invoked by alias); 12 Sep 2011 13:48:37 -0000 Received: (qmail 23629 invoked by uid 22791); 12 Sep 2011 13:48:37 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Sep 2011 13:48:24 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1R36s2-0002KD-DJ from pedro_alves@mentor.com ; Mon, 12 Sep 2011 06:48:22 -0700 Received: from scottsdale.localnet ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 12 Sep 2011 14:48:20 +0100 From: Pedro Alves To: gdb@sourceware.org Subject: Re: How to use gdbserver for X86 host with arm-linux target ? Date: Mon, 12 Sep 2011 13:48:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-11-generic; KDE/4.7.0; x86_64; ; ) Cc: karl leplat References: <4E6DEBD1.4080007@parrot.com> In-Reply-To: <4E6DEBD1.4080007@parrot.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201109121448.18875.pedro@codesourcery.com> 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: 2011-09/txt/msg00035.txt.bz2 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. -- Pedro Alves