From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29910 invoked by alias); 9 Aug 2012 03:48:41 -0000 Received: (qmail 29893 invoked by uid 22791); 9 Aug 2012 03:48:40 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL 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; Thu, 09 Aug 2012 03:48:25 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1SzJjU-00017f-Dl from Yao_Qi@mentor.com ; Wed, 08 Aug 2012 20:48:24 -0700 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 8 Aug 2012 20:48:24 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.1.289.1; Wed, 8 Aug 2012 20:48:23 -0700 From: Yao Qi To: CC: Terry Guo , Subject: Re: Hardware breakpoint limitation issue during the gdb regression test Date: Thu, 09 Aug 2012 03:48:00 -0000 Message-ID: <2908402.0pCVQUbaGe@qiyao.dyndns.org> User-Agent: KMail/4.8.3 (Linux/3.3.7-1.fc16.i686; KDE/4.8.3; i686; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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: 2012-08/txt/msg00023.txt.bz2 On Wednesday, August 08, 2012 04:55:44 PM Terry Guo wrote: > I managed to run gdb "make check" on a real arm cortex-m3 board. > During this regression test, I saw many failures are caused by "Cannot > insert hardware breakpoint 8" and "You may have requested too many > hardware breakpoints/watchpoints". It's true that my arm board only > supports limited number breakpoints. So how to workaround this > limitation for regression test? Thanks. You don't have to workaround this limitation. x86 also has a limited numbe= r=20 of hardware breakpoints and processor with unlimited hw breakpoints doesn't= =20 exist at all :) If testsuite works for x86, it should work for your=20 configuration. As you provide quite few information, I can't tell where the problem is. I= n=20 testsuite, it is regarded that target "arm*-*-*" supports both hardware=20 breakpoint and watchpoint (see skip_hw_breakpoint_tests and=20 skip_hw_watchpoint_tests in testsuite/lib/gdb.exp), so all hw watch/break=20 tests are run on your board. You have to check whether your stub is able to handle hardware=20 breakpoint/watchpoint packets, and insert them correctly. --=20 Yao (=E9=BD=90=E5=B0=A7)