I am trying to create a generic baseboard file in dejagnu for use in
testing GCC with a simulator.  Rather then specify the simulator name
in the baseboard I want to use the SIM env. variable, but that does not
seem to be working.   Does any one know why?

Here is my baseboard (minus blank lines and comments):

load_generic_config "sim"
load_base_board_description "basic-sim"
setup_sim sim
#set_board_info sim /..../my_simulator
process_multilib_options ""
set_board_info compiler "[find_gcc]"
set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]"
set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]

If I uncomment 'set_board_info sim /..../my_simulator'
everthing works. But if I leave it out and set (and export) SIM before running
dejagnu to the same path as specified in the 'set_board_info sim' line
it does not use my simulator.  Can anyone explain why?  It seems like
setup_sim is supposed to be checking SIM and calling set_board_info
but it doesn't seem to.

Steve Ellcey
sell...@mips.com

_______________________________________________
DejaGnu mailing list
DejaGnu@gnu.org
https://lists.gnu.org/mailman/listinfo/dejagnu

Reply via email to