summaryrefslogtreecommitdiff
path: root/src/debug/remgdb/stream-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-03-19 13:02:54 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-03-19 13:02:54 (GMT)
commit94fd405bb0c2e6dfa43324b04a336ffb611c58ce (patch)
treef3170587b4006fa358665a6bbfa301731503d3b3 /src/debug/remgdb/stream-int.h
parent499f00977cd7f50ce0c4cf24dd59b1e920e5b180 (diff)
Provided initial features for debugging using GDB.
Diffstat (limited to 'src/debug/remgdb/stream-int.h')
-rw-r--r--src/debug/remgdb/stream-int.h74
1 files changed, 0 insertions, 74 deletions
diff --git a/src/debug/remgdb/stream-int.h b/src/debug/remgdb/stream-int.h
deleted file mode 100644
index 8ac422d..0000000
--- a/src/debug/remgdb/stream-int.h
+++ /dev/null
@@ -1,74 +0,0 @@
-
-/* Chrysalide - Outil d'analyse de fichiers binaires
- * stream-int.h - prototypes internes pour la gestion des connexions aux serveurs GDB.
- *
- * Copyright (C) 2009-2017 Cyrille Bagard
- *
- * This file is part of Chrysalide.
- *
- * Chrysalide is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * Chrysalide is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Foobar. If not, see <http://www.gnu.org/licenses/>.
- */
-
-
-#ifndef _DEBUG_REMGDB_STREAM_INT_H
-#define _DEBUG_REMGDB_STREAM_INT_H
-
-
-#include "stream.h"
-
-
-
-/* Envoie des données à un serveur GDB. */
-typedef bool (* send_gdb_data_fc) (GGdbStream *, const char *, size_t);
-
-/* Réceptionne un octet de donnée d'un serveur GDB. */
-typedef bool (* recv_gdb_byte_fc) (GGdbStream *, char *);
-
-
-/* Flux de communication avec un serveur GDB (instance) */
-struct _GGdbStream
-{
- GObject parent; /* A laisser en premier */
-
- int fd; /* Flux ouvert en L./E. */
-
- send_gdb_data_fc send_data; /* Envoi d'un paquet GDB */
- recv_gdb_byte_fc recv_byte; /* Réception d'un paquet GDB */
-
- GThread *listening; /* Thread pour les réceptions */
-
- GGdbPacket *free_packets; /* Liste des disponibles */
- GMutex free_mutex; /* Accès à la liste */
-
- GGdbPacket *recv_packets; /* Liste des paquets reçus */
- GCond recv_cond; /* Attente de disponibilité */
- GMutex recv_mutex; /* Accès à la liste */
-
-};
-
-
-/* Flux de communication avec un serveur GDB (classe) */
-struct _GGdbStreamClass
-{
- GObjectClass parent; /* A laisser en premier */
-
-};
-
-
-/* Lance l'écoute d'un flux de communication avec GDB. */
-bool g_gdb_stream_listen(GGdbStream *);
-
-
-
-#endif /* _DEBUG_REMGDB_STREAM_INT_H */