mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
gdb/
Fix compilation --without-expat. * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here from ... [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
Fix compilation --without-expat.
|
||||||
|
* solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
|
||||||
|
from ...
|
||||||
|
[HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
|
||||||
|
|
||||||
2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
|
2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
|
||||||
Jan Kratochvil <jan.kratochvil@redhat.com>
|
Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
@ -961,6 +961,30 @@ struct svr4_library_list
|
|||||||
CORE_ADDR main_lm;
|
CORE_ADDR main_lm;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Implementation for target_so_ops.free_so. */
|
||||||
|
|
||||||
|
static void
|
||||||
|
svr4_free_so (struct so_list *so)
|
||||||
|
{
|
||||||
|
xfree (so->lm_info);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Free so_list built so far (called via cleanup). */
|
||||||
|
|
||||||
|
static void
|
||||||
|
svr4_free_library_list (void *p_list)
|
||||||
|
{
|
||||||
|
struct so_list *list = *(struct so_list **) p_list;
|
||||||
|
|
||||||
|
while (list != NULL)
|
||||||
|
{
|
||||||
|
struct so_list *next = list->next;
|
||||||
|
|
||||||
|
svr4_free_so (list);
|
||||||
|
list = next;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef HAVE_LIBEXPAT
|
#ifdef HAVE_LIBEXPAT
|
||||||
|
|
||||||
#include "xml-support.h"
|
#include "xml-support.h"
|
||||||
@ -1050,30 +1074,6 @@ static const struct gdb_xml_element svr4_library_list_elements[] =
|
|||||||
{ NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL }
|
{ NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Implementation for target_so_ops.free_so. */
|
|
||||||
|
|
||||||
static void
|
|
||||||
svr4_free_so (struct so_list *so)
|
|
||||||
{
|
|
||||||
xfree (so->lm_info);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Free so_list built so far (called via cleanup). */
|
|
||||||
|
|
||||||
static void
|
|
||||||
svr4_free_library_list (void *p_list)
|
|
||||||
{
|
|
||||||
struct so_list *list = *(struct so_list **) p_list;
|
|
||||||
|
|
||||||
while (list != NULL)
|
|
||||||
{
|
|
||||||
struct so_list *next = list->next;
|
|
||||||
|
|
||||||
svr4_free_so (list);
|
|
||||||
list = next;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Parse qXfer:libraries:read packet into *SO_LIST_RETURN. Return 1 if
|
/* Parse qXfer:libraries:read packet into *SO_LIST_RETURN. Return 1 if
|
||||||
|
|
||||||
Return 0 if packet not supported, *SO_LIST_RETURN is not modified in such
|
Return 0 if packet not supported, *SO_LIST_RETURN is not modified in such
|
||||||
|
Reference in New Issue
Block a user