From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6573 invoked by alias); 11 Feb 2011 03:49:49 -0000 Received: (qmail 6563 invoked by uid 22791); 11 Feb 2011 03:49:48 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-gw0-f41.google.com (HELO mail-gw0-f41.google.com) (74.125.83.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 Feb 2011 03:49:37 +0000 Received: by gwj22 with SMTP id 22so992768gwj.0 for ; Thu, 10 Feb 2011 19:49:35 -0800 (PST) Received: by 10.151.14.12 with SMTP id r12mr3326ybi.295.1297396175526; Thu, 10 Feb 2011 19:49:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.147.34.12 with HTTP; Thu, 10 Feb 2011 19:49:15 -0800 (PST) In-Reply-To: References: <4D24D9DD.8090104@codesourcery.com> From: Hui Zhu Date: Fri, 11 Feb 2011 03:49:00 -0000 Message-ID: Subject: Re: [PATCH] tracepoint: add new trace command "printf"[0] gdb To: Doug Evans , Stan Shebs , Michael Snyder Cc: gdb-patches ml Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2011-02/txt/msg00207.txt.bz2 Hi all, I sent the first version patch has been more than a month. And I have done with the support in the KGTP for the support. But I am still not get a code review or something. Are you reviewing or have plan to review this patch? Thanks, Hui On Fri, Feb 4, 2011 at 23:59, Hui Zhu wrote: > The prev version cannot support %s. =A0So make a new version to support i= t. > > And I think current way to handle printf is too much hack way. =A0Maybe > I need find out a more better way to handle the printf. > > Thanks, > Hui > > 2011-02-04 =A0Hui Zhu =A0 > > =A0 =A0 =A0 =A0* ax-gdb.c (gen_printf_expr_callback): New function. > =A0 =A0 =A0 =A0* ax-general.c (ax_memcpy): New function. > =A0 =A0 =A0 =A0(aop_map): Add new entry for "printf". > =A0 =A0 =A0 =A0(ax_print): Handle "printf". > =A0 =A0 =A0 =A0(ax_reqs): Ditto. > =A0 =A0 =A0 =A0* ax.h (agent_op): Add aop_printf. > =A0 =A0 =A0 =A0(ax_memcpy): Forward declare. > =A0 =A0 =A0 =A0* printcmd.c (printf_callback): New typedef. > =A0 =A0 =A0 =A0(string_printf): New function from ui_printf. > =A0 =A0 =A0 =A0(ui_printf): Call string_printf. > =A0 =A0 =A0 =A0(printf_command): Remove static. > =A0 =A0 =A0 =A0* tracepoint.c (printf_command, gen_printf_expr_callback, > =A0 =A0 =A0 =A0printf_callback, string_printf): Forward declares. > =A0 =A0 =A0 =A0(validate_actionline, encode_actions_1): handle printf_com= mand. >