From a5829458a109d5c8a80bd17ec8c5e5550e94c70c Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Thu, 22 Aug 2013 22:06:11 +0000 Subject: Adding missing files from my last commit. --- gdb/syscalls/arm-linux.py | 60 +++++++ gdb/syscalls/arm-linux.xml | 398 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 458 insertions(+) create mode 100644 gdb/syscalls/arm-linux.py create mode 100644 gdb/syscalls/arm-linux.xml (limited to 'gdb/syscalls') diff --git a/gdb/syscalls/arm-linux.py b/gdb/syscalls/arm-linux.py new file mode 100644 index 0000000000..0814dd4e85 --- /dev/null +++ b/gdb/syscalls/arm-linux.py @@ -0,0 +1,60 @@ +# Copyright (C) 2013 Free Software Foundation, Inc. + +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. This file is offered as-is, +# without any warranty. + +import sys +import re +import time + +infname = sys.argv[1] +inf = file(infname) + +print("""\ + + + + + + + +""" % (time.strftime("%Y"), infname)) + +def record(name, number, comment=None): + #nm = 'name="%s"' % name + #s = ' ' % (nm, number) + s = ' ' % (name, number) + if comment: + s += ' ' % comment + print(s) + +for line in inf: + m = re.match(r'^#define __NR_(\w+)\s+\(__NR_SYSCALL_BASE\+\s*(\d+)\)', + line) + if m: + record(m.group(1), int(m.group(2))) + continue + + m = re.match(r'^\s+/\* (\d+) was sys_(\w+) \*/$', line) + if m: + record(m.group(2), int(m.group(1)), 'removed') + + m = re.match(r'^#define __ARM_NR_(\w+)\s+\(__ARM_NR_BASE\+\s*(\d+)\)', + line) + if m: + record('ARM_'+m.group(1), 0x0f0000+int(m.group(2))) + continue + +print('') diff --git a/gdb/syscalls/arm-linux.xml b/gdb/syscalls/arm-linux.xml new file mode 100644 index 0000000000..b35125c60e --- /dev/null +++ b/gdb/syscalls/arm-linux.xml @@ -0,0 +1,398 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3