Received: from eggs.gnu.org ([2001:4830:134:3::10]:55113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3KEd-0001pQ-OB for qemu-devel@nongnu.org; Fri, 12 Jun 2015 04:22:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3KEa-0001Cu-5g for qemu-devel@nongnu.org; Fri, 12 Jun 2015 04:22:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51915) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3KEZ-0001CV-UO for qemu-devel@nongnu.org; Fri, 12 Jun 2015 04:22:40 -0400 From: Markus Armbruster References: <1431948138-14238-1-git-send-email-hw.claudio@gmail.com> <20150528161841.72032284@redhat.com> <20150611135356.6ab8d26f@redhat.com> Date: Fri, 12 Jun 2015 08:21:31 +0200 In-Reply-To: <20150611135356.6ab8d26f@redhat.com> (Luiz Capitulino's message of "Thu, 11 Jun 2015 13:53:56 -0400") Message-ID: <87si9x4fbo.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC v6 0/2] monitor: add memory search commands s, sp List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: Peter Maydell , Claudio Fontana , qemu-devel@nongnu.org, Gonglei , Paolo Bonzini , hw.claudio@gmail.com Luiz Capitulino writes: > On Thu, 28 May 2015 16:18:41 -0400 > Luiz Capitulino wrote: > >> On Mon, 18 May 2015 13:22:16 +0200 >> hw.claudio@gmail.com wrote: >>=20 >> > From: Claudio Fontana >> >=20 >> > This is the latest iteration of the memory search patch, >> > including a trivial replacement for the memmem function for systems >> > which don't provide one (notably Windows). >> >=20 >> > It detects the presence of memmem in configure and sets CONFIG_MEMMEM, >> > providing a trivial implementation for the !CONFIG_MEMMEM case. >> >=20 >> > The new code is MIT licensed, following usage of other files in the sa= me >> > directory dealing with replacement functions (osdep, oslib, getauxval = etc), >> > and to maximize reusability. >> >=20 >> > I have tested this in both CONFIG_MEMMEM defined/undefined scenarios, >> > but more feedback and testing is welcome of course. >> >=20 >> > changes from v5: >> > dropped the import from gnulib and implemented a trivial replacement. >> >=20 >> > changes from v4: >> > made into a series of two patches. >> > Introduced a memmem replacement function (import from gnulib) >> > and detection code in configure. >> >=20 >> > changes from v3: >> > initialize pointer variable to NULL to finally get rid of spurious war= ning >> >=20 >> > changes from v2: >> > move code to try to address spurious warning >> >=20 >> > changes from v1: >> > make checkpatch happy by adding braces here and there. >> >=20 >> >=20 >> > Claudio Fontana (2): >> > util: add memmem replacement function >> > monitor: add memory search commands s, sp >>=20 >> Applied to the qmp branch, thanks. > > > Unfortunately, I'm quite busy and won't have time to push this > through my tree. Markus is going to pick up this series soon. > > Acked-by: Luiz Capitulino This series is marked RFC. Is it intended for merging anyway? Semantic conflict with [PATCH v2 0/2] monitor+disas: Remove uses of ENV_GET_CPU needs to be resolved: CC x86_64-softmmu/monitor.o /work/armbru/qemu/monitor.c: In function =E2=80=98memory_search=E2=80=99: /work/armbru/qemu/monitor.c:1222:9: warning: passing argument 1 of =E2=80= =98x86_env_get_cpu=E2=80=99 from incompatible pointer type [enabled by defa= ult] } else if (cpu_memory_rw_debug(ENV_GET_CPU(mon_get_cpu()), addr, ^ In file included from /work/armbru/qemu/target-i386/cpu.h:982:0, from /work/armbru/qemu/include/qemu-common.h:124, from /work/armbru/qemu/include/hw/hw.h:5, from /work/armbru/qemu/monitor.c:25: /work/armbru/qemu/target-i386/cpu-qom.h:119:23: note: expected =E2=80=98str= uct CPUX86State *=E2=80=99 but argument is of type =E2=80=98struct CPUState= *=E2=80=99 static inline X86CPU *x86_env_get_cpu(CPUX86State *env) ^