This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Makefile setting
- To: Mark_Farr/ARC at arccores dot com
- Subject: Re: Makefile setting
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Tue, 11 Apr 2000 10:18:45 +1000
- CC: gdb at sourceware dot cygnus dot com, Stephane dot Bihan at arccores dot com
- Organization: Cygnus Solutions
- References: <OFED5E6862.05164227-ON802568BD.005330B7@risccores.com>
Mark_Farr/ARC@arccores.com wrote:
>
> Dear All,
>
> We are trying to use functions defined in a file stored in the gdb directory
> for our simulator ( /sim/arc/ ). These functions are also used by the remote
> target.
> We have undefined symbols when building libsim.a. For example,
> gdb_register_names[ ] is used by the simulator. When defined as extern the
> symbol is still undefined.
> A work-around is to insert a special toggle (#ifdef) in remote-sim.c in
> function gdbsim_open( ), instead of sim_open( ) in our simulator. This isn't
> particularly elegant - but is this acceptable if we want to release the
> sources.
I'm not really sure on what you're trying to use. Sorry.
> Do you have any ideas of a nicer solution?
Have you looked at the interface src/include/remote-sim.h? That is what
libsim.a should be exporting and is what sim/common/{run.c,nrun.c} both
use.
Andrew