From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13145 invoked by alias); 24 Jul 2012 16:11:24 -0000 Received: (qmail 13118 invoked by uid 22791); 24 Jul 2012 16:11:21 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 Jul 2012 16:11:07 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1SthhT-0006lw-CQ from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Tue, 24 Jul 2012 09:11:07 -0700 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Tue, 24 Jul 2012 09:11:06 -0700 Received: from qiyao.dyndns.org.dyndns.org (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.1.289.1; Tue, 24 Jul 2012 09:11:06 -0700 From: Yao Qi To: Subject: [RFC 0/6] MI notification of command option change Date: Tue, 24 Jul 2012 16:11:00 -0000 Message-ID: <1343146252-22558-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-07/txt/msg00487.txt.bz2 When Eclipse connects to GDB through MI, user is still abel to type command in console (or telnet session), so the state of GDB may be changed while Eclipse is not aware of. GDB is lack of notifications to MI front end and/or telnet session when the internal state of GDB is changed (eg. changed by some 'set foo bar' commands or tracepoint is downloaded). This patch series is to address the problem that caused by command 'set foo bar'. When user types some interesting commands in console, GDB will send MI notifications about the command option changes. The following patch series will address the problem caused by other aspects in the future. In this way, Eclipse is aware of the change of GDB state, and refresh or update itself accordingly. Patch 1/6 - 3/6 are about the new observer 'command_option_changed' and new MI notification '=option-changed' when observer is notified. Patch 4/6 - 6/6 are about registering three types of command respectively. Three commands will send MI notifications if their option is changed. There are more than three commands that can change the state of GDB, but these three are reprsentives of them. The rest of commands can be easily changed to sending MI notifications. Regression tested on x86_64 native/gdbserver.