aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2005-11-17 15:51:24 +0000
committerHans-Peter Nilsson <hp@axis.com>2005-11-17 15:51:24 +0000
commit5457266c93b2d713d95a4879446015aac02b270c (patch)
tree507abf2458205ec96151e3e8c7760fd32257a013 /sim
parent461b725f29e97e9270f3136b19df3513e8798b15 (diff)
downloadgdb-5457266c93b2d713d95a4879446015aac02b270c.zip
gdb-5457266c93b2d713d95a4879446015aac02b270c.tar.gz
gdb-5457266c93b2d713d95a4879446015aac02b270c.tar.bz2
* cris/traps.c (TARGET_SYS_stat): Define.
(syscall_stat32_map): Add entry for TARGET_SYS_stat. (cris_break_13_handler) <case TARGET_SYS_stat>: New case.
Diffstat (limited to 'sim')
-rw-r--r--sim/ChangeLog6
-rw-r--r--sim/cris/traps.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/sim/ChangeLog b/sim/ChangeLog
index 3fa2416..9bc31eb 100644
--- a/sim/ChangeLog
+++ b/sim/ChangeLog
@@ -1,3 +1,9 @@
+2005-11-17 Hans-Peter Nilsson <hp@axis.com>
+
+ * cris/traps.c (TARGET_SYS_stat): Define.
+ (syscall_stat32_map): Add entry for TARGET_SYS_stat.
+ (cris_break_13_handler) <case TARGET_SYS_stat>: New case.
+
2005-11-16 Hans-Peter Nilsson <hp@axis.com>
* cris/cris-tmpl.c (MY (f_model_insn_before)): Make sure only the
diff --git a/sim/cris/traps.c b/sim/cris/traps.c
index 5b3718d..11cfaae 100644
--- a/sim/cris/traps.c
+++ b/sim/cris/traps.c
@@ -63,6 +63,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define TARGET_SYS_truncate 92
#define TARGET_SYS_ftruncate 93
#define TARGET_SYS_socketcall 102
+#define TARGET_SYS_stat 106
#define TARGET_SYS_fstat 108
#define TARGET_SYS_wait4 114
#define TARGET_SYS_sigreturn 119
@@ -260,6 +261,7 @@ static const char stat32_map[] =
static const CB_TARGET_DEFS_MAP syscall_stat32_map[] =
{
{ CB_SYS_fstat, TARGET_SYS_fstat },
+ { CB_SYS_stat, TARGET_SYS_stat },
{ 0, -1 }
};
@@ -2324,6 +2326,7 @@ cris_break_13_handler (SIM_CPU *current_cpu, USI callnum, USI arg1,
/* Add case labels here for other syscalls using the 32-bit
"struct stat", provided they have a corresponding simulator
function of course. */
+ case TARGET_SYS_stat:
case TARGET_SYS_fstat:
{
/* As long as the infrastructure doesn't cache anything