From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22442 invoked by alias); 13 Sep 2011 17:28:34 -0000 Received: (qmail 22418 invoked by uid 22791); 13 Sep 2011 17:28:33 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RP_MATCHES_RCVD,SPF_HELO_PASS 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; Tue, 13 Sep 2011 17:28:18 +0000 Received: from hpaq12.eem.corp.google.com (hpaq12.eem.corp.google.com [172.25.149.12]) by smtp-out.google.com with ESMTP id p8DHSGc3022470 for ; Tue, 13 Sep 2011 10:28:16 -0700 Received: from qyk4 (qyk4.prod.google.com [10.241.83.132]) by hpaq12.eem.corp.google.com with ESMTP id p8DHRIMY029670 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 13 Sep 2011 10:28:15 -0700 Received: by qyk4 with SMTP id 4so743093qyk.13 for ; Tue, 13 Sep 2011 10:28:14 -0700 (PDT) Received: by 10.224.211.3 with SMTP id gm3mr4836280qab.111.1315934894904; Tue, 13 Sep 2011 10:28:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.211.3 with SMTP id gm3mr4836274qab.111.1315934894730; Tue, 13 Sep 2011 10:28:14 -0700 (PDT) Received: by 10.224.80.201 with HTTP; Tue, 13 Sep 2011 10:28:14 -0700 (PDT) In-Reply-To: <201109121448.18875.pedro@codesourcery.com> References: <4E6DEBD1.4080007@parrot.com> <201109121448.18875.pedro@codesourcery.com> Date: Tue, 13 Sep 2011 17:28:00 -0000 Message-ID: Subject: Re: How to use gdbserver for X86 host with arm-linux target ? From: Doug Evans To: Pedro Alves Cc: gdb@sourceware.org, karl leplat 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-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/msg00040.txt.bz2 On Mon, Sep 12, 2011 at 6:48 AM, 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. =A0The arm-linux gdbserver port was never taught about > managing breakpoints itself. =A0When 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). =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. [always on the lookout for such things ...]