v6502
The MOS 6502 Virtual Machine and Toolchain Infrastructure
Typedefs | Functions
debugger.h File Reference

Interactive Debugger. More...

#include <v6502/cpu.h>
#include <v6502/breakpoint.h>
#include <histedit.h>

Go to the source code of this file.

Typedefs

typedef void() v6502_debuggerRunCallback(v6502_cpu *cpu)
 This callback is used when v6502_handleDebuggerCommand recieves a run command.
 

Functions

int v6502_loadFileAtAddress (v6502_memory *mem, const char *fname, uint16_t address)
 Loads the binary data from file at fname into memory mem at given starting address.
 
void v6502_runDebuggerScript (v6502_cpu *cpu, FILE *file, v6502_breakpoint_list *breakpoint_list, as6502_symbol_table *table, v6502_debuggerRunCallback runCallback, int *verbose)
 Runs all debugger commands contained in a FILE pointer.
 
int v6502_compareDebuggerCommand (const char *command, size_t len, const char *literal)
 This is the exact function used by v6502_handleDebuggerCommand to do fuzzy string comparisons. It is exposed for extending the debugger to support other commands outside the v6502_handleDebuggerCommand function.
 
int v6502_handleDebuggerCommand (v6502_cpu *cpu, char *command, size_t len, v6502_breakpoint_list *breakpoint_list, as6502_symbol_table *table, v6502_debuggerRunCallback runCallback, int *verbose)
 Handle a command given by an external debugger line editor on a given v6502_cpu. More...
 
unsigned char v6502_completeDebuggerCommand (EditLine *e, int ch)
 An editline compatible function for tab-completion.
 

Detailed Description

Interactive Debugger.