TEMU  2
The Terma Emulator
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
GdbServer.h
Go to the documentation of this file.
1 //===-- temu-c/GdbServer.h - GdbServer API ------------------------*- C++ -*-===//
2 //
3 // T-EMU: The Terma Emulator
4 // (c) Terma 2015
5 // Authors: Mattias Holm <maho@terma.com>
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef TEMU_GDBSERVER_H
10 #define TEMU_GDBSERVER_H
11 
12 #include <stdint.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 void temu_initGdbServerLib(void);
19 
21 void* temu_createGdbServer(uint16_t Port);
22 
24 void temu_disposeGdbServer(void *Gdb);
25 
27 void temu_gdbWaitForConnection(void *Gdb);
28 
30 void temu_gdbAddMachine(void *Gdb, const char *MachineName);
31 
33 void temu_gdbAddCpu(void *Gdb, const char *CpuName);
34 
36 void temu_gdbAsyncStop(void *Gdb);
37 
39 int temu_gdbRun(void *Gdb);
40 
41 #ifdef __cplusplus
42 }
43 #endif
44 
45 
46 #endif /* TEMU_GDBSERVER_H */
void temu_gdbWaitForConnection(void *Gdb)
Wait current thread for a user to connect.
void temu_gdbAsyncStop(void *Gdb)
Tell GDB server to stop at next safe point in time.
void temu_initGdbServerLib(void)
Initialise the GDB Server Library.
void * temu_createGdbServer(uint16_t Port)
Create a new GDB server.
void temu_gdbAddMachine(void *Gdb, const char *MachineName)
Add named machine to GDB server.
int temu_gdbRun(void *Gdb)
Run the GDB server loop.
void temu_gdbAddCpu(void *Gdb, const char *CpuName)
Add named CPU to GDB server.
void temu_disposeGdbServer(void *Gdb)
Dispose a GDB server.