mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 20:12:01 +08:00
Fix build without libexpat
clear_threads_listing_context is used for thread listing methods other than the xml based, but it's only defined when HAVE_LIBEXPAT is defined. gdb/ 2014-10-17 Pedro Alves <palves@redhat.com> * remote.c (clear_threads_listing_context): Move higher up, out of the HAVE_LIBEXPAT guard.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2014-10-17 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
|
* remote.c (clear_threads_listing_context): Move higher up, out of
|
||||||
|
the HAVE_LIBEXPAT guard.
|
||||||
|
|
||||||
2014-10-16 Tristan Gingold <gingold@adacore.com>
|
2014-10-16 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
* i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
|
* i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
|
||||||
|
30
gdb/remote.c
30
gdb/remote.c
@ -2559,6 +2559,21 @@ struct threads_listing_context
|
|||||||
VEC (thread_item_t) *items;
|
VEC (thread_item_t) *items;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Discard the contents of the constructed thread listing context. */
|
||||||
|
|
||||||
|
static void
|
||||||
|
clear_threads_listing_context (void *p)
|
||||||
|
{
|
||||||
|
struct threads_listing_context *context = p;
|
||||||
|
int i;
|
||||||
|
struct thread_item *item;
|
||||||
|
|
||||||
|
for (i = 0; VEC_iterate (thread_item_t, context->items, i, item); ++i)
|
||||||
|
xfree (item->extra);
|
||||||
|
|
||||||
|
VEC_free (thread_item_t, context->items);
|
||||||
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
remote_newthread_step (threadref *ref, void *data)
|
remote_newthread_step (threadref *ref, void *data)
|
||||||
{
|
{
|
||||||
@ -2664,21 +2679,6 @@ const struct gdb_xml_element threads_elements[] = {
|
|||||||
{ NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL }
|
{ NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Discard the contents of the constructed thread info context. */
|
|
||||||
|
|
||||||
static void
|
|
||||||
clear_threads_listing_context (void *p)
|
|
||||||
{
|
|
||||||
struct threads_listing_context *context = p;
|
|
||||||
int i;
|
|
||||||
struct thread_item *item;
|
|
||||||
|
|
||||||
for (i = 0; VEC_iterate (thread_item_t, context->items, i, item); ++i)
|
|
||||||
xfree (item->extra);
|
|
||||||
|
|
||||||
VEC_free (thread_item_t, context->items);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* List remote threads using qXfer:threads:read. */
|
/* List remote threads using qXfer:threads:read. */
|
||||||
|
Reference in New Issue
Block a user