int gdb_new_connection(connection_t *connection)
{
struct gdb_connection *gdb_connection = malloc(sizeof(struct gdb_connection));
- gdb_service_t *gdb_service = connection->service->priv;
+ struct gdb_service *gdb_service = connection->service->priv;
int retval;
int initial_ack;
int gdb_connection_closed(connection_t *connection)
{
- gdb_service_t *gdb_service = connection->service->priv;
+ struct gdb_service *gdb_service = connection->service->priv;
struct gdb_connection *gdb_connection = connection->priv;
/* we're done forwarding messages. Tear down callback before
int gdb_v_packet(connection_t *connection, target_t *target, char *packet, int packet_size)
{
struct gdb_connection *gdb_connection = connection->priv;
- gdb_service_t *gdb_service = connection->service->priv;
+ struct gdb_service *gdb_service = connection->service->priv;
int result;
/* if flash programming disabled - send a empty reply */
int gdb_detach(connection_t *connection, target_t *target)
{
- gdb_service_t *gdb_service = connection->service->priv;
+ struct gdb_service *gdb_service = connection->service->priv;
target_call_event_callbacks(gdb_service->target, TARGET_EVENT_GDB_DETACH);
int gdb_input_inner(connection_t *connection)
{
- gdb_service_t *gdb_service = connection->service->priv;
+ struct gdb_service *gdb_service = connection->service->priv;
target_t *target = gdb_service->target;
char *packet = gdb_packet_buffer;
int packet_size;
int gdb_init(void)
{
- gdb_service_t *gdb_service;
+ struct gdb_service *gdb_service;
target_t *target = all_targets;
if (!target)
{
/* only a single gdb connection when using a pipe */
- gdb_service = malloc(sizeof(gdb_service_t));
+ gdb_service = malloc(sizeof(struct gdb_service));
gdb_service->target = target;
add_service("gdb", CONNECTION_PIPE, 0, 1, gdb_new_connection, gdb_input, gdb_connection_closed, gdb_service);
while (target)
{
- gdb_service = malloc(sizeof(gdb_service_t));
+ gdb_service = malloc(sizeof(struct gdb_service));
gdb_service->target = target;
add_service("gdb", CONNECTION_TCP,