def sync_svc(state):
syscall = state.cpu.R7 <EOL>name = linux_syscalls.armv7[syscall]<EOL>logger.debug(f"<STR_LIT>")<EOL>try:<EOL><INDENT>if '<STR_LIT>' in name:<EOL><INDENT>returned = gdb.getR('<STR_LIT>')<EOL>logger.debug(f"<STR_LIT>")<EOL>state.cpu.write_register('<STR_LIT>', returned)<EOL><DEDENT>if '<STR_LIT>' in name:<EOL><INDENT>return<EOL><DEDENT><DEDENT>except ValueError:<EOL><INDENT>for reg in state.cpu.canonical_registers:<EOL><INDENT>print(f'<STR_LIT>')<EOL><DEDENT>raise<EOL><DEDENT>
Mirror some service calls in manticore. Happens after qemu executed a SVC
instruction, but before manticore did.