From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120862 invoked by alias); 9 Nov 2015 15:05:50 -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 120741 invoked by uid 89); 9 Nov 2015 15:05:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f41.google.com Received: from mail-pa0-f41.google.com (HELO mail-pa0-f41.google.com) (209.85.220.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 09 Nov 2015 15:05:44 +0000 Received: by pabfh17 with SMTP id fh17so201881254pab.0 for ; Mon, 09 Nov 2015 07:05:42 -0800 (PST) X-Received: by 10.66.66.166 with SMTP id g6mr40328816pat.152.1447081542274; Mon, 09 Nov 2015 07:05:42 -0800 (PST) Received: from E107787-LIN (gcc2-power8.osuosl.org. [140.211.9.43]) by smtp.gmail.com with ESMTPSA id cx5sm16896057pbc.50.2015.11.09.07.05.40 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 09 Nov 2015 07:05:41 -0800 (PST) From: Yao Qi To: Juha Aaltonen Cc: gdb-mailing list Subject: Re: remote watchpoint References: Date: Mon, 09 Nov 2015 15:05:00 -0000 In-Reply-To: (Juha Aaltonen's message of "Sun, 8 Nov 2015 15:18:00 +0200") Message-ID: <868u67xlfo.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00008.txt.bz2 Juha Aaltonen writes: > How does a remote server/stub tell gdb which watchpoint fired? The stub sends stop reply back to GDB with 'watch', 'rwatch' and 'awatch', see details in=20 https://sourceware.org/gdb/current/onlinedocs/gdb/Stop-Reply-Packets.html > Also, how does gdb know how many breakpoints/watchpoints are available? In the remote debugging, GDB doesn't know how many breakpoint/watchpoints available, but it can tell from the reply of Z packet. See more descriptions on Z packets https://sourceware.org/gdb/current/onlinedocs/gdb/Packets.html --=20 Yao (=E9=BD=90=E5=B0=A7)