From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30108 invoked by alias); 20 Feb 2004 16:52:09 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 30094 invoked from network); 20 Feb 2004 16:52:08 -0000 Received: from unknown (HELO localhost.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 20 Feb 2004 16:52:08 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 4C4512B92; Fri, 20 Feb 2004 11:52:07 -0500 (EST) Message-ID: <40363B35.5080902@gnu.org> Date: Fri, 20 Feb 2004 16:52:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: "Vineet Sharma, Noida" Cc: gdb@sources.redhat.com Subject: Re: Add systemc simulator with gdb References: <1B3885BC15C7024C845AAC78314766C5036B65F3@exch-01.noida.hcltech.com> In-Reply-To: <1B3885BC15C7024C845AAC78314766C5036B65F3@exch-01.noida.hcltech.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-02/txt/msg00277.txt.bz2 > Hi All, > > Is there any examples who have sucessfully integrated there > simulators in c++ or systemc with gdb? > What are the issues faced in that approach? > > I found the problem of conflicting types of bfd in bfd.h and > remote-sim.h(:67). Any idea how to overcome it? > > ../../include/gdb/remote-sim.h:67: conflicting types for `struct bfd' > /usr/include/bfd.h:78: previous declaration as `typedef struct _bfd bfd' FYI, it should not be including that version of bfd.h (but I don't know if fixing that will help much). Andrew > ../../include/gdb/remote-sim.h:108: using typedef-name `bfd' after `struct' > ../../include/gdb/remote-sim.h:145: using typedef-name `bfd' after `struct' > ../../include/gdb/remote-sim.h:165: using typedef-name `bfd' after `struct' > I think its bcoz of the difference in c++/g++ and gcc handling of > forward declaration? > > Your comments and inputs would be very helpfull > > >