From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4131 invoked by alias); 18 Jan 2007 11:54:25 -0000 Received: (qmail 4120 invoked by uid 22791); 18 Jan 2007 11:54:23 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate2.de.ibm.com (HELO mtagate2.de.ibm.com) (195.212.29.151) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 18 Jan 2007 11:54:17 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate2.de.ibm.com (8.13.8/8.13.8) with ESMTP id l0IBsEf6050854 for ; Thu, 18 Jan 2007 11:54:14 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.2) with ESMTP id l0IBsEuL3190860 for ; Thu, 18 Jan 2007 12:54:14 +0100 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l0IBsEtV004900 for ; Thu, 18 Jan 2007 12:54:14 +0100 Received: from [9.152.248.39] (dyn-9-152-248-39.boeblingen.de.ibm.com [9.152.248.39]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l0IBsEd9004889 for ; Thu, 18 Jan 2007 12:54:14 +0100 Message-ID: <45AF5FE2.1050101@de.ibm.com> Date: Thu, 18 Jan 2007 11:54:00 -0000 From: Markus Deuling User-Agent: Thunderbird 1.5.0.9 (X11/20070102) MIME-Version: 1.0 To: GDB Discuss Subject: [RFC] Toogle debug flags in gdbserver Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit 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: 2007-01/txt/msg00280.txt.bz2 Hi, there are two debug flags in gdbserver: * debug_threads * remote_debug Both are '0' as default. 'remote_debug' may be toogled by a 'd' packet. The doc says 'Don't use this packet, define a general set packet...'. I think it would be a good idea to have the possibility to switch on/off these two debug flags in the gdbserver without re-compiling it. The idea is to define two new packets 'qDebugThread' and 'qDebugRemote' and connect it to two new 'set debug' commands. 'set debug remote_thread ' with value={0,1} sends 'qDebugThread:' if remote connection is available 'set debug remote_remote ' with value={0,1} sends 'qDebugRemote:' if remote connection is available Reply to these package would be 'OK' if applied. An older gdbversion without qDebug* support would reply '0' (default response in server.c:handle_query() if it gets an unsupported qPacket). What do you think of this idea? If I implement it, I would think it's a good idea to remove support for 'd' packets, isn't it ? Regards, Markus -- Markus Deuling GNU Toolchain for Linux on Cell BE deuling@de.ibm.com