From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16523 invoked by alias); 10 May 2012 11:41:23 -0000 Received: (qmail 16508 invoked by uid 22791); 10 May 2012 11:41:21 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from eu1sys200aog101.obsmtp.com (HELO eu1sys200aog101.obsmtp.com) (207.126.144.111) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 10 May 2012 11:41:08 +0000 Received: from beta.dmz-eu.st.com ([164.129.1.35]) (using TLSv1) by eu1sys200aob101.postini.com ([207.126.147.11]) with SMTP ID DSNKT6upUQlL9irb7FgoLn58ItDmOLieDJGN@postini.com; Thu, 10 May 2012 11:41:08 UTC Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 18BE592; Thu, 10 May 2012 11:41:00 +0000 (GMT) Received: from Webmail-eu.st.com (safex1hubcas4.st.com [10.75.90.69]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 6865C447D; Thu, 10 May 2012 11:41:00 +0000 (GMT) Received: from SAFEX1MAIL1.st.com ([10.75.90.1]) by Safex1hubcas4.st.com ([10.75.90.69]) with mapi; Thu, 10 May 2012 13:40:54 +0200 From: Giuseppe MONTALTO To: Tom Tromey Cc: "gdb-patches@sourceware.org" Date: Thu, 10 May 2012 11:41:00 -0000 Subject: RE: [PATCH] new MI command for pattern filling of memory regions Message-ID: <76FE3225DF13124EA2D05B290B624C95E65FECE356@SAFEX1MAIL1.st.com> References: <76FE3225DF13124EA2D05B290B624C95E65F2D466E@SAFEX1MAIL1.st.com> <87sjf9rzr0.fsf@fleche.redhat.com> In-Reply-To: <87sjf9rzr0.fsf@fleche.redhat.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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-05/txt/msg00331.txt.bz2 > -----Original Message----- > From: Tom Tromey [mailto:tromey@redhat.com] > Sent: Wednesday, May 09, 2012 8:11 PM > To: Giuseppe MONTALTO > Cc: gdb-patches@sourceware.org > Subject: Re: [PATCH] new MI command for pattern filling of memory > regions >=20 > I was told off-list that you are covered by your employer's assignment. > So, good. I was almost sure about that, though I had no way to check it. >=20 > Giuseppe> the proposed enhancement is about memory filling. >=20 > I started to review this, but I wondered why a new command is > necessary. >=20 > It seems like you could send any hex string to want to > -data-write-memory-bytes. >=20 > Alternatively, if you really want the repeat count, why not just add an > optional argument to -data-write-memory-bytes? That would seem to be > simpler. I didn't want to alter the syntax of an already existing command. I did so, in the past, on a custom version of gdb, and this caused me a=20 lot of trouble while migrating to a newer release: I discovered that=20 the new release featured another argument to a command I had amended, which was conflicting with my own changes, so I had to rework both! Giuseppe