From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21093 invoked by alias); 17 Sep 2009 23:31:45 -0000 Received: (qmail 21085 invoked by uid 22791); 17 Sep 2009 23:31:44 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: sourceware.org Received: from va3ehsobe003.messaging.microsoft.com (HELO VA3EHSOBE003.bigfish.com) (216.32.180.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 17 Sep 2009 23:31:40 +0000 Received: from mail117-va3-R.bigfish.com (10.7.14.244) by VA3EHSOBE003.bigfish.com (10.7.40.23) with Microsoft SMTP Server id 8.1.340.0; Thu, 17 Sep 2009 23:31:38 +0000 Received: from mail117-va3 (localhost.localdomain [127.0.0.1]) by mail117-va3-R.bigfish.com (Postfix) with ESMTP id 58A873401DB for ; Thu, 17 Sep 2009 23:31:38 +0000 (UTC) X-SpamScore: -1 X-BigFish: VPS-1(zz4015Lzz1202hzzz2ei6bh43j66h) X-Spam-TCS-SCL: 5:0 Received: by mail117-va3 (MessageSwitch) id 1253230297188419_12271; Thu, 17 Sep 2009 23:31:37 +0000 (UCT) Received: from MAEDG1.ets.enterasys.com (unknown [134.141.3.138]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail117-va3.bigfish.com (Postfix) with ESMTP id 1AEA51C8005F for ; Thu, 17 Sep 2009 23:31:37 +0000 (UTC) Received: from macas-nlb.ets.enterasys.com (134.141.79.21) by MAEDG1.ets.enterasys.com (134.141.168.76) with Microsoft SMTP Server (TLS) id 8.1.375.2; Thu, 17 Sep 2009 19:30:37 -0400 Received: from MAEXCEVS2.ets.enterasys.com ([fe80::3dbe:b680:ebc5:ec67]) by MACAS1.ets.enterasys.com ([fe80::9cc2:82ec:a40:9ee%10]) with mapi; Thu, 17 Sep 2009 19:27:27 -0400 From: "Garrod, David" To: "gdb@sourceware.org" Date: Thu, 17 Sep 2009 23:31:00 -0000 Subject: How do I set a hard watchpoint with gdbserver? Message-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: 2009-09/txt/msg00222.txt.bz2 I'm using a configuration of gdb and gdbserver. Both the host (gdb) and the= target (gdbserver) are running on Linux on Intel 486 or 586 sytstems. I would like to be able to issue the command: watch *(int*)addr and have it set a "hard" watchpoint on the target. What seems to happening = is that a soft watchpoint is being set since when I continue everything see= ms to hang until I ^C and remove the watchpoint. How do I persuade gdbserver to set a hard watchpoint rather than a soft wat= chpoint? Breakpoints work fine in that they get set hard. Thanks, Dave Garrod