From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VT9GW-0004yL-PA for qemu-devel@nongnu.org; Mon, 07 Oct 2013 07:46:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VT9GS-0000TY-9D for qemu-devel@nongnu.org; Mon, 07 Oct 2013 07:46:20 -0400 Received: from mail-lb0-f180.google.com ([209.85.217.180]:58383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VT9GS-0000T6-25 for qemu-devel@nongnu.org; Mon, 07 Oct 2013 07:46:16 -0400 Received: by mail-lb0-f180.google.com with SMTP id q8so5465882lbi.11 for ; Mon, 07 Oct 2013 04:46:14 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <525288C9.3080207@adacore.com> References: <1380905823-3981-1-git-send-email-chouteau@adacore.com> <1380905823-3981-4-git-send-email-chouteau@adacore.com> <525288C9.3080207@adacore.com> From: Peter Maydell Date: Mon, 7 Oct 2013 20:45:54 +0900 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH 3/4] Refactoring MonitorDef array List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fabien Chouteau Cc: Luiz Capitulino , QEMU Developers , =?UTF-8?Q?Andreas_F=C3=A4rber?= On 7 October 2013 19:11, Fabien Chouteau wrote: > On 10/04/2013 07:49 PM, Peter Maydell wrote: >> On 5 October 2013 01:57, Fabien Chouteau wrote: >> >> @@ -47,7 +48,9 @@ >>> #include "hw/xen/xen.h" >>> #include "hw/i386/apic_internal.h" >>> #endif >>> +#include "monitor/monitor_def.h" >>> >>> +extern const MonitorDef i386_monitor_defs[]; >> >> Declare this in cpu-qom.h, rather than having an >> extern declaration in a .c file. >> > > I didn't manage to do that. If you just say "I couldn't make that work" with no details, there isn't much I can say beyond "try harder" :-) If you say *why* you couldn't get it to work then I'm more likely to either (a) suggest an approach that will work or (b) accept that it really does have to be that way... thanks -- PMM