aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-10-27 17:19:02 +0000
committerAndrew Cagney <cagney@redhat.com>2004-10-27 17:19:02 +0000
commit1ca6491a29f9ed6fa883fdce9606ea58d43a8432 (patch)
treea720e65e83124bdb12ba0a25eaa7c45079d316f6
parent7a5df8d098f80a7890b07a5e4f9fc1b1a96a166f (diff)
downloadgdb-1ca6491a29f9ed6fa883fdce9606ea58d43a8432.zip
gdb-1ca6491a29f9ed6fa883fdce9606ea58d43a8432.tar.gz
gdb-1ca6491a29f9ed6fa883fdce9606ea58d43a8432.tar.bz2
2004-10-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
Committed by Andrew Cagney. * traps-linux.c: Don't include linux/module.h. (m32r_trap): Remove dummy systemcall's entry of __NR_ustat and __NR_get_kernel_syms.
-rw-r--r--sim/m32r/ChangeLog7
-rw-r--r--sim/m32r/traps-linux.c42
2 files changed, 7 insertions, 42 deletions
diff --git a/sim/m32r/ChangeLog b/sim/m32r/ChangeLog
index 8d3db71..d4bcdb8 100644
--- a/sim/m32r/ChangeLog
+++ b/sim/m32r/ChangeLog
@@ -1,3 +1,10 @@
+2004-10-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
+
+ Committed by Andrew Cagney.
+ * traps-linux.c: Don't include linux/module.h.
+ (m32r_trap): Remove dummy systemcall's entry of __NR_ustat and
+ __NR_get_kernel_syms.
+
2004-05-18 Daniel Jacobowitz <dan@debian.org>
* Makefile.in (stamp-xmloop, stamp-2mloop): Use -outfile-suffix.
diff --git a/sim/m32r/traps-linux.c b/sim/m32r/traps-linux.c
index 55a97a5..a6362c1 100644
--- a/sim/m32r/traps-linux.c
+++ b/sim/m32r/traps-linux.c
@@ -39,7 +39,6 @@
#include <sys/uio.h>
#include <sys/utsname.h>
#include <sys/vfs.h>
-#include <linux/module.h>
#include <linux/sysctl.h>
#include <linux/types.h>
#include <linux/unistd.h>
@@ -509,27 +508,6 @@ m32r_trap (SIM_CPU *current_cpu, PCADDR pc, int num)
errcode = errno;
break;
- case __NR_ustat:
- {
- struct ustat ubuf;
-
- result = ustat(arg1, &ubuf);
- errcode = errno;
-
- if (result != 0)
- break;
-
- ubuf.f_tfree = conv_endian(ubuf.f_tfree);
- ubuf.f_tinode = conv_endian(ubuf.f_tinode);
- if ((s.write_mem) (cb, &s, arg2, (char *) &ubuf, sizeof(ubuf))
- != sizeof(ubuf))
- {
- result = -1;
- errcode = EINVAL;
- }
- }
- break;
-
case __NR_dup2:
result = dup2(arg1, arg2);
errcode = errno;
@@ -1117,26 +1095,6 @@ m32r_trap (SIM_CPU *current_cpu, PCADDR pc, int num)
errcode = errno;
break;
- case __NR_get_kernel_syms:
- {
- struct kernel_sym table;
-
- result = get_kernel_syms(&table);
- errcode = errno;
-
- if (result != 0)
- break;
-
- table.value = conv_endian(table.value);
- if ((s.write_mem) (cb, &s, arg1, (char *) &table, sizeof(table))
- != sizeof(table))
- {
- result = -1;
- errcode = EINVAL;
- }
- }
- break;
-
case __NR_fchdir:
result = fchdir(arg1);
errcode = errno;