summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 08:06:52 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:08 -0800
commit45a165a432eae2eb74b97ec5196736a352923a12 (patch)
tree91a6a6abe11dfdcb48f1a07323aba2efceae595e /src/server
parent53bfd73591037044b391dd9a849e77284a7932d1 (diff)
downloadopenocd+libswd-45a165a432eae2eb74b97ec5196736a352923a12.tar.gz
openocd+libswd-45a165a432eae2eb74b97ec5196736a352923a12.tar.bz2
openocd+libswd-45a165a432eae2eb74b97ec5196736a352923a12.tar.xz
openocd+libswd-45a165a432eae2eb74b97ec5196736a352923a12.zip
gdb_service_t -> struct gdb_service
Remove misleading typedef and redundant suffix from struct gdb_service.
Diffstat (limited to 'src/server')
-rw-r--r--src/server/gdb_server.c16
-rw-r--r--src/server/gdb_server.h4
2 files changed, 10 insertions, 10 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index 4d20a7df..fe916c26 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -726,7 +726,7 @@ int gdb_target_callback_event_handler(struct target_s *target, enum target_event
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;
@@ -781,7 +781,7 @@ int gdb_new_connection(connection_t *connection)
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
@@ -1813,7 +1813,7 @@ int gdb_query_packet(connection_t *connection, target_t *target, char *packet, i
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 */
@@ -1949,7 +1949,7 @@ int gdb_v_packet(connection_t *connection, target_t *target, char *packet, int p
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);
@@ -1984,7 +1984,7 @@ static void gdb_sig_halted(connection_t *connection)
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;
@@ -2197,7 +2197,7 @@ int gdb_input(connection_t *connection)
int gdb_init(void)
{
- gdb_service_t *gdb_service;
+ struct gdb_service *gdb_service;
target_t *target = all_targets;
if (!target)
@@ -2216,7 +2216,7 @@ int gdb_init(void)
{
/* 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);
@@ -2230,7 +2230,7 @@ int gdb_init(void)
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,
diff --git a/src/server/gdb_server.h b/src/server/gdb_server.h
index 239c50e0..ee9063b4 100644
--- a/src/server/gdb_server.h
+++ b/src/server/gdb_server.h
@@ -49,10 +49,10 @@ struct gdb_connection
};
-typedef struct gdb_service_s
+struct gdb_service
{
struct target_s *target;
-} gdb_service_t;
+};
int gdb_init(void);
int gdb_register_commands(command_context_t *command_context);