added syscall interface to debug variables

float_support
Anton Lydike 4 years ago
parent bf4c705297
commit cd08cd4f70

@ -169,4 +169,10 @@ class SyscallInterface:
def get_syscall_symbols(self): def get_syscall_symbols(self):
return { return {
('SCALL_' + name.upper()): num for num, name in SYSCALLS.items() ('SCALL_' + name.upper()): num for num, name in SYSCALLS.items()
} }
def __repr__(self):
return "{}(\n\tfiles={}\n)".format(
self.__class__.__name__,
self.open_files
)

@ -14,6 +14,7 @@ def launch_debug_session(cpu: 'CPU', mmu: 'MMU', reg: 'Registers', prompt=""):
registers = reg registers = reg
memory = mmu memory = mmu
mem = mmu mem = mmu
syscall_interface = cpu.syscall_int
vars = globals() vars = globals()
vars.update(locals()) vars.update(locals())

Loading…
Cancel
Save