StuBS
handler.cc File Reference
#include "debug/gdb/handler.h"
#include "debug/gdb/stub.h"
#include "debug/gdb/state.h"
#include "debug/output.h"
#include "interrupt/handler.h"
#include "machine/apic.h"
#include "machine/idt.h"
#include "machine/ioapic.h"
#include "machine/lapic.h"
#include "machine/core.h"
Include dependency graph for handler.cc:

Functions

void gdb_interrupt_handler (DebugContext *context)
 High-Level interrupt handler for GDB_Stub.
 

Constants

static GDB_Stubinstance = 0
 GDB instance.
 

Function Documentation

◆ gdb_interrupt_handler()

void gdb_interrupt_handler ( DebugContext context)

High-Level interrupt handler for GDB_Stub.

Allow the generic GDB interrupt handler to access the protected methods of this class.

Similar to the default interrupt_handler. Called by the entry function written in assembly (see debug/gbd/handler.asm) – these routines are installed in the constructor.

After preparing the data this function calls GDB_Stub::handle, which handles the communication with the host via the serial interface.

Optional:
Since this function should now also be triggered by the serial interrupt, the end of interrupt must be signaled.
Parameters
contextcontains a pointer to the stack, which can be used to access the debug interrupt context.

Variable Documentation

◆ instance

GDB_Stub* instance = 0
static

GDB instance.

(as it were singleton)