aboutsummaryrefslogtreecommitdiff
path: root/gdb/features
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-03-14 22:30:07 +0000
committerPedro Alves <palves@redhat.com>2008-03-14 22:30:07 +0000
commit1fddbabb01cdd8aa6400ca1ff8461259f90ca126 (patch)
tree51bc2ee1527c059adf8a89d580b094e2d15a40ff /gdb/features
parent29035cbe96305dc7d3a2844fc6c0506de8e23aaf (diff)
downloadgdb-1fddbabb01cdd8aa6400ca1ff8461259f90ca126.zip
gdb-1fddbabb01cdd8aa6400ca1ff8461259f90ca126.tar.gz
gdb-1fddbabb01cdd8aa6400ca1ff8461259f90ca126.tar.bz2
* features/library-list.dtd: Allow "section" elements as children
of "library". Add "section" element and describe its attributes. * solib-target.c (struct lm_info): Add section_bases member. (library_list_start_segment): Error out if seen a section element. (library_list_start_section): New. (library_list_end_library): New. (solib_target_free_library_list): Free section_bases. (section_attributes): New. (library_children): Make "segment" optional. Add "section" child. (library_list_children): Register library_list_end_library. (solib_target_relocate_section_addresses): Handle section bases. * NEWS: Mention new qXfer:libraries:read section offsets support. doc/ * gdb.texinfo (Library List Format): Update to mention the possibility to pass section addresses instead of segment addresses.
Diffstat (limited to 'gdb/features')
-rw-r--r--gdb/features/library-list.dtd5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/features/library-list.dtd b/gdb/features/library-list.dtd
index c63048a..62a9baf 100644
--- a/gdb/features/library-list.dtd
+++ b/gdb/features/library-list.dtd
@@ -8,8 +8,11 @@
<!ELEMENT library-list (library)*>
<!ATTLIST library-list version CDATA #FIXED "1.0">
-<!ELEMENT library (segment)*>
+<!ELEMENT library (segment*, section*)>
<!ATTLIST library name CDATA #REQUIRED>
<!ELEMENT segment EMPTY>
<!ATTLIST segment address CDATA #REQUIRED>
+
+<!ELEMENT section EMPTY>
+<!ATTLIST section address CDATA #REQUIRED>