This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Makefile setting
- To: gdb at sourceware dot cygnus dot com
- Subject: Makefile setting
- From: Mark_Farr/ARC at arccores dot com
- Date: Mon, 10 Apr 2000 16:57:18 +0100
- Cc: Stephane dot Bihan at arccores dot com
- Reply-To: Mark_Farr/ARC at arccores dot com
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.
Do you have any ideas of a nicer solution?
Thanks,
Mark