diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-02-17 17:51:06 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-02-17 17:51:06 (GMT) |
commit | 73605bffb935fc51a52be1936426211e31dd898a (patch) | |
tree | 094d72321011baae0d5054e06906e9d006249c3b /src/debug/stream.c | |
parent | 98a3c749a15349b874dcef0ce3a43ebff651d95a (diff) |
Listed all running threads using Python.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@234 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/debug/stream.c')
-rw-r--r-- | src/debug/stream.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/debug/stream.c b/src/debug/stream.c index 4c4767a..5d91aa8 100644 --- a/src/debug/stream.c +++ b/src/debug/stream.c @@ -2,7 +2,7 @@ /* OpenIDA - Outil d'analyse de fichiers binaires * stream.c - gestion des connexions aux serveurs de débogage. * - * Copyright (C) 2010 Cyrille Bagard + * Copyright (C) 2010-2012 Cyrille Bagard * * This file is part of OpenIDA. * @@ -210,6 +210,8 @@ GDebugPacket *g_debug_stream_get_free_packet(GDebugStream *stream) void g_debug_stream_mark_packet_as_free(GDebugStream *stream, GDebugPacket *packet) { + stream->free_packet(stream, packet); + g_mutex_lock(stream->free_mutex); g_debug_packet_push(&stream->free_packets, packet); @@ -272,7 +274,10 @@ GDebugPacket *g_debug_stream_recv_packet(GDebugStream *stream, filter_packet_fc result = g_debug_packet_get_next_iter(stream->recv_packets, result)) { if (filter(result, data)) + { + g_debug_packet_extract(&stream->recv_packets, result); break; + } } if (result == NULL) |