From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19854 invoked by alias); 22 Mar 2005 15:25:37 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 19731 invoked from network); 22 Mar 2005 15:25:20 -0000 Received: from unknown (HELO nwd2mail1.analog.com) (137.71.25.50) by sourceware.org with SMTP; 22 Mar 2005 15:25:20 -0000 Received: from nwd2mhb2.analog.com (nwd2mhb2.analog.com [137.71.6.12]) by nwd2mail1.analog.com (8.12.10/8.12.10) with ESMTP id j2MFPDv1005825 for ; Tue, 22 Mar 2005 10:25:17 -0500 Received: from nwd2exm3.ad.analog.com (nwd2exm3.ad.analog.com [10.64.51.19]) by nwd2mhb2.analog.com (8.9.3 (PHNE_28810+JAGae91741)/8.9.3) with ESMTP id KAA21081 for ; Tue, 22 Mar 2005 10:25:12 -0500 (EST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: protocol question Date: Tue, 22 Mar 2005 15:25:00 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Decker, Paul" To: X-Spam-Status: No, hits=-102.2 required=10.0 tests=ALL_TRUSTED,J_CHICKENPOX_27,USER_IN_WHITELIST version=3.0.2 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 3.000002 (2004-11-16) X-SW-Source: 2005-03/txt/msg00203.txt.bz2 =20 Hello everyone! I apologize if this is the wrong news group for this question, if so; just point me to the correct one. I'm developing a target stub for a custom processor which will then be able to connect with GDB. From what I understand, the stub can send unsolicited messages to GDB, for example, if the stub encounters an error of some sort, or wants to send other information to be displayed in the GDB console. It seems this is done with the 'O' command being sent by the stub, without the stub checking for an ack.=20=20 Is there anything in GDB that needs to be 'turned on' to enable this functionality, or do I have a conceptual problem and this is not how it is designed to work? I've tried to send a test command of: // output of send text function $O0a54686973206973206120746573740a#32 Just for testing, I'm doing this in the main processing loop //process gdb proxy commands while( pSocketObject->Getpkt(m_Threadbuff) > 0 ) { nStatus =3D pSocketObject->ProcessCommand(m_Threadbuff); if(nStatus > 0)=20 { pSocketObject->Putpkt(m_Threadbuff); } pSocketObject->SendText("\nThis is a test\n"); //test for kill command if(nStatus =3D=3D -1)=20 { break; } } However, I don't get anything being printed in the gdb console. Any ideas? Thanks for any help! Regards, Paul.