From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89467 invoked by alias); 9 Nov 2015 22:57:51 -0000 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 Received: (qmail 89456 invoked by uid 89); 9 Nov 2015 22:57:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wm0-f54.google.com Received: from mail-wm0-f54.google.com (HELO mail-wm0-f54.google.com) (74.125.82.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 09 Nov 2015 22:57:49 +0000 Received: by wmww144 with SMTP id w144so95963404wmw.1 for ; Mon, 09 Nov 2015 14:57:46 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.194.200.233 with SMTP id jv9mr284519wjc.133.1447109866870; Mon, 09 Nov 2015 14:57:46 -0800 (PST) Received: by 10.28.59.65 with HTTP; Mon, 9 Nov 2015 14:57:46 -0800 (PST) Date: Mon, 09 Nov 2015 22:57:00 -0000 Message-ID: Subject: How are watchpoints handled? (remote serial) From: Juha Aaltonen To: gdb-mailing list Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00010.txt.bz2 How should the watchpoints be handled by remote stub/server? It seems that when 'cont'-command is given, gdb re-installs watchpoint and sends 'c'-packet. If the return address is the trap address, the watchpoint trigs again, but if the address is advanced, the access is not done at all, because the watchpoint makes exception before the access is made.