aboutsummaryrefslogtreecommitdiff
path: root/sim/common/callback.c
AgeCommit message (Collapse)AuthorFilesLines
2000-02-08Fix compile time warning messages.Nick Clifton1-8/+8
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+810
1999-04-16Initial creation of sourceware repositoryStan Shebs1-808/+0
1997-11-20 * callback.c (cb_host_to_target_stat): Fix return values.Doug Evans1-3/+6
1997-11-17Tweak comment.Doug Evans1-2/+3
1997-11-17 * Make-common.in (DEP, COMMON_DEP_CFLAGS): Define.Doug Evans1-24/+239
(LIB_OBJS): Add syscall.o. (gentmap): Pass $(NL_TARGET) to $(CC). (syscall.o): Add rule for. (sim_main_headers): Add $(SIM_EXTRA_DEPS). (sim-bits.o): Depend on $(sim-n-bits_h). (sim-load.o): Depend on callback.h. * Make-common.in (cgen-*.o): Update dependencies, mem-ops.h renamed to cgen-mem.h, sem-ops.h renamed to cgen-ops.h. * cgen-mem.h, cgen-ops.h: New files. * aclocal.m4 (--enable-sim-scache): Pass -DWITH_SCACHE=0 for "=no". * Makefile.in (nltvals.def): Depend on gennltvals.sh. Rewrite build rule. * callback.c: #include string.h or strings.h. #include sys/types.h and sys/stat.h. (cb_init_syscall_map,cb_init_errno_map,cb_init_open_map): Declare. (enosys): New function. (os_get_errno,os_open): Update. (os_stat,os_fstat): New functions. (os_init): Initialize syscall_map, errno_map, open_map. (default_callback): Add entries for os_stat, os_fstat, syscall_map, errno_map, open_map, signal_map, stat_map. (cb_read_target_syscall_maps): New function. (cb_target_to_host_syscall): New function. (cb_host_to_target_errno): Renamed from host_to_target_errno. (cb_target_to_host_open): Renamed from target_to_host_open. (store): New function. (cb_host_to_target_stat): New function. * gentmap.c (sys_tdefs): New global. (gen_targ_vals_h): Output target syscall numbers. (gen_targ_map_c): Update. Output target syscall translation map. * gentvals.sh: New first argument `target'. Preface table with #ifdef NL_TARGET_$target if non-null target passed. * gennltvals.sh: New file. * nltvals.def: Regenerated.
1997-08-30Passify GCC. Convert 0x0LL to something more portable in the FP code.Andrew Cagney1-0/+8
1997-08-14Add comment.David Edelsohn1-1/+8
1997-08-14 * callback.c (os_poll_quit): Make static.David Edelsohn1-3/+31
Call sim_cb_eprintf, not p->eprintf. (sim_cb_printf, sim_cb_eprintf): New functions.
1997-05-16 * callback.c (os_close): Mark the descriptor as beingJeff Law1-6/+121
available if the close succeeded. (os_open): Pass 0644 as the mode of the file being created. Bring Bob's changes over from the mec branch.
1997-02-11Silence warnings in ppc simulatorMichael Meissner1-1/+10
1996-12-09 * callback.c: #include <stdlib.h>David Edelsohn1-0/+422
(os_error): New function. (default_callback): Add os_error.