userland: add assembly support

Move arm assembly cheat here, and start some work on x86 cheat as well.
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-05 00:00:00 +00:00
parent 7a5ca339a3
commit 0263c21557
117 changed files with 3870 additions and 547 deletions

View File

@@ -126,12 +126,12 @@ class ShellHelpers:
src = os.path.join(srcdir, basename)
if os.path.isfile(src):
noext, ext = os.path.splitext(basename)
if filter_ext is not None and ext == filter_ext:
distutils.file_util.copy_file(
src,
os.path.join(destdir, basename),
update=1,
)
dest = os.path.join(destdir, basename)
if (
(filter_ext is not None and ext == filter_ext) and
(os.path.exists(dest) and os.path.getmtime(src) > os.path.getmtime(dest))
):
self.cp(src, dest)
def copy_dir_if_update(self, srcdir, destdir, filter_ext=None):
self.copy_dir_if_update_non_recursive(srcdir, destdir, filter_ext)
@@ -283,7 +283,9 @@ class ShellHelpers:
#signal.signal(signal.SIGPIPE, sigpipe_old)
returncode = proc.returncode
if returncode != 0 and raise_on_failure:
raise Exception('Command exited with status: {}'.format(returncode))
e = Exception('Command exited with status: {}'.format(returncode))
e.returncode = returncode
raise e
return returncode
else:
return 0