From d6c10e950e91d34b7193c43395c695b0fd51400f Mon Sep 17 00:00:00 2001 From: Paul Pluzhnikov Date: Fri, 5 Aug 2011 16:38:40 +0000 Subject: [PATCH] 2011-08-05 Paul Pluzhnikov * solib-target.c (segment_attributes): Make them static. (section_attributes, library_children, library_attributes): Likewise. (library_list_children, library_list_attributes): Likesise. (library_list_elements): Likewise. --- gdb/ChangeLog | 7 +++++++ gdb/solib-target.c | 14 +++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 212db1d813..4215c45c74 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2011-08-05 Paul Pluzhnikov + + * solib-target.c (segment_attributes): Make them static. + (section_attributes, library_children, library_attributes): Likewise. + (library_list_children, library_list_attributes): Likesise. + (library_list_elements): Likewise. + 2011-08-05 Pedro Alves * exceptions.c (throw_exception): Don't disable the current diff --git a/gdb/solib-target.c b/gdb/solib-target.c index 54a6cf00a6..888aa349da 100644 --- a/gdb/solib-target.c +++ b/gdb/solib-target.c @@ -181,17 +181,17 @@ solib_target_free_library_list (void *p) /* The allowed elements and attributes for an XML library list. The root element is a . */ -const struct gdb_xml_attribute segment_attributes[] = { +static const struct gdb_xml_attribute segment_attributes[] = { { "address", GDB_XML_AF_NONE, gdb_xml_parse_attr_ulongest, NULL }, { NULL, GDB_XML_AF_NONE, NULL, NULL } }; -const struct gdb_xml_attribute section_attributes[] = { +static const struct gdb_xml_attribute section_attributes[] = { { "address", GDB_XML_AF_NONE, gdb_xml_parse_attr_ulongest, NULL }, { NULL, GDB_XML_AF_NONE, NULL, NULL } }; -const struct gdb_xml_element library_children[] = { +static const struct gdb_xml_element library_children[] = { { "segment", segment_attributes, NULL, GDB_XML_EF_REPEATABLE | GDB_XML_EF_OPTIONAL, library_list_start_segment, NULL }, @@ -201,24 +201,24 @@ const struct gdb_xml_element library_children[] = { { NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL } }; -const struct gdb_xml_attribute library_attributes[] = { +static const struct gdb_xml_attribute library_attributes[] = { { "name", GDB_XML_AF_NONE, NULL, NULL }, { NULL, GDB_XML_AF_NONE, NULL, NULL } }; -const struct gdb_xml_element library_list_children[] = { +static const struct gdb_xml_element library_list_children[] = { { "library", library_attributes, library_children, GDB_XML_EF_REPEATABLE | GDB_XML_EF_OPTIONAL, library_list_start_library, library_list_end_library }, { NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL } }; -const struct gdb_xml_attribute library_list_attributes[] = { +static const struct gdb_xml_attribute library_list_attributes[] = { { "version", GDB_XML_AF_NONE, NULL, NULL }, { NULL, GDB_XML_AF_NONE, NULL, NULL } }; -const struct gdb_xml_element library_list_elements[] = { +static const struct gdb_xml_element library_list_elements[] = { { "library-list", library_list_attributes, library_list_children, GDB_XML_EF_NONE, library_list_start_list, NULL }, { NULL, NULL, NULL, GDB_XML_EF_NONE, NULL, NULL } -- 2.34.1