aboutsummaryrefslogtreecommitdiff
path: root/sim/common/callback.c
AgeCommit message (Collapse)AuthorFilesLines
2010-01-01Update copyright notices to add year 2010.Joel Brobecker1-1/+1
2009-01-14 Update the copyright notice of some of the files I missedJoel Brobecker1-1/+1
in the previous copyright update.
2009-01-06 * callback.c (os_error): Mark as being a noreturn function.Hans-Peter Nilsson1-1/+5
* sim-io.h (sim_io_error): Similar for sim_io_error.
2008-01-01 Updated copyright notices for most files.Daniel Jacobowitz1-1/+1
2007-10-112007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>Daniel Jacobowitz1-0/+11
* callback.c (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add functions. * syscall.c (cb_syscall): Test for stdin/out/err, not just fd 0/1/2. 2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com> * callback.h (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add prototypes. 2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com> * sim/cris/c/freopen2.c: Added testcase.
2007-10-112007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>Daniel Jacobowitz1-0/+7
* callback.c (cb_is_stdin): Add. * syscall.c (cb_syscall): Test for stdin, not just fd 0. 2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com> * callback.h (cb_is_stdin): Add prototype.
2007-08-24 Switch the license of all files explicitly copyright the FSFJoel Brobecker1-3/+2
to GPLv3.
2007-01-09Copyright updates for 2007.Daniel Jacobowitz1-1/+1
2005-07-08 * callback.c: Remove ANSI_PROTOTYPES conditional code.Ben Elliston1-44/+0
* sim-load.c: Likewise. * syscall.c: Likewise.
2005-04-292005-04-29 Paul Brook <paul@codesourcery.com>Paul Brook1-0/+18
* common/callback.c (PIPE_BUF): Provide default refinition. (os_lstat): Use stat if lstat is not available on the host. (os_ftruncate): Return EINVAL if not available on the host. (os_truncate): Ditto. * common/configure.ac: Check for lstat, truncate and ftruncate. * common/configure: Regenerate. * common/config.in: Regenerate.
2005-02-21* callback.c (os_fstat): Don't declare 't' unless it's used.Jim Blandy1-0/+2
2005-01-28 * syscall.c (cb_syscall) <case CB_SYS_pipe>: New case.Hans-Peter Nilsson1-1/+242
* callback.c [HAVE_LIMITS_H]: Include limits.h. Include libiberty.h. (os_close, os_read, os_write, os_fstat, os_ftruncate): Support fd being either end of a pipe. (os_pipe, os_pipe_empty, os_pipe_nonempty): New functions. (os_shutdown): Clear pipe state. (default_callback): Initialize new members.
2005-01-28 * callback.c (default_callback): Initialize target_endian.Hans-Peter Nilsson1-8/+11
(cb_store_target_endian): Renamed from store, new first parameter host_callback *cb, drop last parameter big_p. Take endianness from cb. (cb_host_to_target_stat): Change to use cb_store_target_endian. Remove variable big_p. * nrun.c (main): Initialize default_callback.target_endian.
2004-12-13 * syscall.c (cb_syscall) <case CB_SYS_lstat>: New case.Hans-Peter Nilsson1-0/+11
* callback.c (os_lstat): New function.
2004-12-03Bah, forgot to commit the trivial fix I pointed out myself after applying ↵Hans-Peter Nilsson1-1/+1
patch for previous change
2004-12-03 * configure.in (SIM_CHECK_MEMBERS): Call for struct stat membersHans-Peter Nilsson1-4/+48
st_dev, st_ino, st_mode, st_nlink, st_uid, st_gid, st_rdev, st_size, st_blksize, st_blocks, st_atime, st_mtime and st_ctime. * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS_1) (SIM_CHECK_MEMBERS): New macros. * callback.c (cb_host_to_target_stat): Use temporary macro ST_x for struct stat member test and write. Add ST_x calls for each struct stat member tested in configure.in. Wrap each ST_x call in #ifdef of configure macro for that member. * configure, config.in: Regenerate.
2004-06-27 * callback.c (os_shutdown): Fix bug in last change: actuallyJoern Rennecke1-0/+1
mark file descriptors as available on startup.
2004-06-252004-06-25 J"orn Rennecke <joern.rennecke@superh.com>Joern Rennecke1-14/+39
include/gdb: * callback.h (host_callback_struct): Replace members fdopen and alwaysopen with fd_buddy. sim/common: * callback.c: Changed all users.
2004-05-10 * callback.c: Update copyright dates.Daniel Jacobowitz1-2/+3
* run.c: Likewise. * sim-basics.h: Likewise. * sim-load.c: Likewise. * syscall.c: Likewise. From Maciej W. Rozycki <macro@ds2.pg.gda.pl> * callback.c: Include cconfig.h instead of config.h. * run.c: Likewise. * sim-basics.h: Likewise. * sim-load.c: Likewise. * syscall.c: Likewise.
2003-10-212003-10-21 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-1/+1
* callback.c (os_truncate): Call "truncate", and not "stat".
2003-10-15include/gdb:Joern Rennecke1-0/+27
* callback.h (struct host_callback_struct): New members ftruncate and truncate. gdb: sim/common: * callback.c (os_ftruncate, os_truncate): New functions. (default_callback): Initialize ftruncate and truncate members. sim/sh: * syscall.h (SYS_truncate, SYS_ftruncate): Define. * interp.c (trap): Add support for SYS_ftruncate and SYS_truncate.
2002-06-09Move include/callback.h and include/remote-sim.h to include/gdb/.Andrew Cagney1-1/+1
Update accordingly.
2002-05-01[ common/ChangeLog ]Chris Demetriou1-1/+1
2002-05-01 Chris Demetriou <cgd@broadcom.com> * callback.c: Use 'deprecated' rather than 'depreciated.' [ igen/ChangeLog ] 2002-05-01 Chris Demetriou <cgd@broadcom.com> * igen.c: Use 'deprecated' rather than 'depreciated.' [ mips/ChangeLog ] 2002-05-01 Chris Demetriou <cgd@broadcom.com> * interp.c: Use 'deprecated' rather than 'depreciated.' * sim-main.h: Likewise.
2002-02-102002-02-10 Chris Demetriou <cgd@broadcom.com>Chris Demetriou1-1/+1
* callback.c: Fix some spelling errors. * hw-device.h: Likewise. * hw-tree.c: Likewise. * sim-abort.c: Likewise. * sim-alu.h: Likewise. * sim-core.h: Likewise. * sim-events.c: Likewise. * sim-events.h: Likewise. * sim-fpu.h: Likewise. * sim-profile.h: Likewise. * sim-utils.c: Likewise.
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.