/******************************************************************************
 * Copyright 2015 Espressif Systems
 *
 * Description: Assembly routines for the gdbstub
 *
 * License: ESPRESSIF MIT License
 *******************************************************************************/

#pragma once

#ifdef __cplusplus
extern "C" {
#endif

void gdbstub_init_debug_entry();
void gdbstub_icount_ena_single_step();
void gdbstub_save_extra_sfrs_for_exception();

int gdbstub_set_hw_breakpoint(int addr, int len);
int gdbstub_set_hw_watchpoint(int addr, int len, int type);
int gdbstub_del_hw_breakpoint(int addr);
int gdbstub_del_hw_watchpoint(int addr);

extern void* gdbstub_do_break_breakpoint_addr;

#ifdef __cplusplus
}
#endif
