2d7bb7580a
On Windows, a recent gnulib update imported the lstat module, and this caused a remote-sim.c build failure in struct host_callback_struct: In file included from /[...]/gdb/remote-sim.c:34:0: /[...]/gdb/../include/gdb/callback.h:93:9: error: duplicate member '_stati64' int (*lstat) (host_callback *, const char *, struct stat *); ^ What happens it that gnulib's stat.h makes the following defines: /* Large File Support on native Windows. */ #if 1 # define stat _stati64 #endif and then: #if 1 # if ! 0 /* mingw does not support symlinks, therefore it does not have lstat. But without links, stat does just fine. */ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define lstat stat # endif So, the following fields in struct host_callback_struct... int (*stat) (host_callback *, const char *, struct stat *); int (*fstat) (host_callback *, int, struct stat *); int (*lstat) (host_callback *, const char *, struct stat *); ... get translated to... int (*_stati64) (host_callback *, const char *, struct _stati64 *); int (*_fstati64) (host_callback *, int, struct _stati64 *); int (*_stati64) (host_callback *, const char *, struct _stati64 *); ... which causes two fields to have the same name. This patch fixes the issue by renaming the stat-related fields by adding a "to_" prefix, similar to what is done in GDB's target_ops vector. include/gdb/ChangeLog: * callback.h (struct host_callback_struct) <to_stat>: Renamed from "stat". <to_fstat>: Renamed from "fstat". <to_lstat>: Renamed from "lstat". sim/common/ChangeLog: * sim-io.c (sim_io_stat, sim_io_fstat): Adjust calls to "stat" and "fstat" callbacks by calls to "to_stat" and "to_fstat" (resp) callbacks following renaming in callback.h. * syscall.c (cb_syscall): Likewise. Adjust calls to "lstat" callback by call to "to_lstat" callback sim/cris/ChangeLog: * traps.c (cris_break_13_handler): Adjust call to "fstat" callback by call to "to_fstat" following renaming in callback.h. sim/h8300/ChangeLog: * compile.c (sim_resume): Adjust calls to "stat" and "fstat" callbacks by calls to "to_stat" and "to_fstat" (resp) callbacks following renaming in callback.h.
96 lines
2.4 KiB
Text
96 lines
2.4 KiB
Text
2014-12-03 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
* traps.c (cris_break_13_handler): Adjust call to "fstat" callback
|
|
by call to "to_fstat" following renaming in callback.h.
|
|
|
|
2014-08-19 Alan Modra <amodra@gmail.com>
|
|
|
|
* configure: Regenerate.
|
|
|
|
2014-08-15 Roland McGrath <mcgrathr@google.com>
|
|
|
|
* configure: Regenerate.
|
|
* config.in: Regenerate.
|
|
|
|
2014-03-05 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* sim-if.c (sim_load): Add const to prog.
|
|
|
|
2014-03-04 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* configure: Regenerate.
|
|
|
|
2013-09-23 Alan Modra <amodra@gmail.com>
|
|
|
|
* configure: Regenerate.
|
|
|
|
2013-06-03 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* aclocal.m4, configure: Regenerate.
|
|
|
|
2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
|
|
|
|
* configure: Rebuild.
|
|
|
|
2013-03-26 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* configure: Regenerate.
|
|
|
|
2012-06-15 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
* config.in, configure: Regenerate.
|
|
|
|
2012-05-18 Nick Clifton <nickc@redhat.com>
|
|
|
|
PR 14072
|
|
* sim-if.c: Include config.h before system header files.
|
|
|
|
2012-03-24 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* aclocal.m4, config.in, configure: Regenerate.
|
|
|
|
2011-12-03 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* aclocal.m4: New file.
|
|
* configure: Regenerate.
|
|
|
|
2011-10-19 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* configure: Regenerate after common/acinclude.m4 update.
|
|
|
|
2011-10-17 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* configure.ac: Change include to common/acinclude.m4.
|
|
|
|
2011-10-17 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
|
|
call. Replace common.m4 include with SIM_AC_COMMON.
|
|
* configure: Regenerate.
|
|
|
|
2011-07-05 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* sim-if.c (sim_do_command): Delete.
|
|
|
|
2010-10-09 Alan Modra <amodra@gmail.com>
|
|
|
|
* cris-desc.h: Regenerate.
|
|
|
|
2010-10-07 Hans-Peter Nilsson <hp@axis.com>
|
|
|
|
* traps.c (cris_break_13_handler): Pass lseek
|
|
offset parameter as sign-extended.
|
|
|
|
2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
|
|
|
|
* dv-rv.c (hw_rv_init_socket): Check error return from socket() call
|
|
by its equality to -1 not by it being negative.
|
|
(hw_rv_write): Likewise.
|
|
(hw_rv_handle_incoming): Likewise.
|
|
(hw_rv_poll_once): Likewise.
|
|
* rvdummy.c (setupsocket): Likewise.
|
|
(main): Likewise for accept() call as returned from setupsocket().
|
|
|
|
2010-03-30 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
* devices.c (device_error): Add const to message.
|