From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17795 invoked by alias); 17 Nov 2005 19:46:36 -0000 Received: (qmail 17786 invoked by uid 22791); 17 Nov 2005 19:46:34 -0000 Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (192.114.186.20) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 17 Nov 2005 19:46:34 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-21-94.inter.net.il [80.230.21.94]) by nitzan.inter.net.il (MOS 3.6.5-GR) with ESMTP id BYW10339 (AUTH halo1); Thu, 17 Nov 2005 21:46:21 +0200 (IST) Date: Thu, 17 Nov 2005 19:46:00 -0000 Message-Id: From: Eli Zaretskii To: Kevin Buettner CC: gdb@sources.redhat.com In-reply-to: <20051117112043.4d9f587e@ironwood.lan> (message from Kevin Buettner on Thu, 17 Nov 2005 11:20:43 -0700) Subject: Re: Interrupting remote targets from GDB Reply-to: Eli Zaretskii References: <20051117112043.4d9f587e@ironwood.lan> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00351.txt.bz2 > Date: Thu, 17 Nov 2005 11:20:43 -0700 > From: Kevin Buettner > > I think this documentation is fine, but would also like to see some > suitable documentation added to the section describing the GDB remote > protocol. I suggest that a section called "Interrupts" be added in > between the sections "Register Packet Format" and "Examples". I propose > that it contain the following text: > > When a program on the remote target is running, GDB may attempt > to interrupt it by sending a `Ctrl-C' or a BREAK, control of which > is specified via GDB's `remotebreak' setting. The precise meaning > of BREAK is defined by the transport mechanism and may, in fact, > be undefined. `Ctrl-C', on the other hand, is defined for all > transport mechanisms and is represented by sending the single byte > 0x03. `Ctrl-C' must not be sent as part of a packet as defined in > the "Overview". > > Stubs are not required to recognize these interrupt mechanisms and > the precise meaning associated with receipt of the interrupt is > implementation defined. If the stub is successful at interrupting > the running program, it is expected that it will send one of the > `Stop Reply Packets' to GDB as a result of successfully stopping > the program. > > Comments? Fine with me. Can you craft a patch and post it on gdb-patches for review?