Add systemc simulator with gdb
Andrew Cagney
cagney@gnu.org
Fri Feb 20 16:52:00 GMT 2004
> 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
>
>
>
More information about the Gdb
mailing list