/* Handle SVR4 shared libraries for GDB, the GNU Debugger.
- Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000,
- 2001, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
- Free Software Foundation, Inc.
+ Copyright (C) 1990-1996, 1998-2001, 2003-2012 Free Software
+ Foundation, Inc.
This file is part of GDB.
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
#include "xml-support.h"
{ 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
Return 0 if packet not supported, *SO_LIST_RETURN is not modified in such