This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Makefile setting


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]