From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1439 invoked by alias); 24 Jan 2014 09:43:17 -0000 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 Received: (qmail 1418 invoked by uid 89); 24 Jan 2014 09:43:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 24 Jan 2014 09:43:15 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1W6dI7-0005vA-O3 from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Fri, 24 Jan 2014 01:43:11 -0800 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 24 Jan 2014 01:43:11 -0800 Received: from qiyao.dyndns.org.dyndns.org (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.2.247.3; Fri, 24 Jan 2014 01:43:10 -0800 From: Yao Qi To: Subject: [PATCH 0/5 V8] MI notification on trace started/stopped Date: Fri, 24 Jan 2014 09:43:00 -0000 Message-ID: <1390556465-28796-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00921.txt.bz2 Hello, This is the V8 of the patch series for "MI notification on trace started and stopped". In V8, the changes are: - Treat notification as a feature in qSupported, to get to know a certain notification is supported or not. It saves much code. - Call observer_notify_trace_changed only when GDB gets async remote notification Trace, so that the notification order is consistent in two sides (GDB side and GDBserver side). - Consume some notification events on some points in all stop mode. See patch 1/5. Patch 2/5 is about querying supported notifications. Patch 3/5 is to add new async remote notification trace. Patch 4/5 is to add new MI notification on trace started and stopped. Patch 5/5 is to add the test cases. They are tested on x86_64-linux with {unix, native-gdbserver} x {sync, async}. Is it OK? V7 can be found https://sourceware.org/ml/gdb-patches/2013-12/msg00495.html *** BLURB HERE *** Yao Qi (5): Process notifications when reply is got Query supported notifications by qSupported async remote notification 'Trace'. MI notification on trace started/stopped New test case mi-trace-changed.exp gdb/Makefile.in | 5 +- gdb/NEWS | 5 + gdb/doc/gdb.texinfo | 26 +++++ gdb/doc/observer.texi | 6 + gdb/gdbserver/notif.c | 44 ++++++++ gdb/gdbserver/notif.h | 6 + gdb/gdbserver/server.c | 15 +++- gdb/gdbserver/tracepoint.c | 35 ++++++ gdb/mi/mi-cmds.c | 6 +- gdb/mi/mi-interp.c | 22 ++++ gdb/mi/mi-main.h | 2 + gdb/remote-notif-trace.c | 79 ++++++++++++++ gdb/remote-notif.c | 57 +++++++++- gdb/remote-notif.h | 14 +++- gdb/remote.c | 47 +++++++- gdb/testsuite/gdb.trace/mi-trace-changed.exp | 149 ++++++++++++++++++++++++++ 16 files changed, 504 insertions(+), 14 deletions(-) create mode 100644 gdb/remote-notif-trace.c create mode 100644 gdb/testsuite/gdb.trace/mi-trace-changed.exp -- 1.7.7.6