Simplify XML parsing a bit.
authorPedro Alves <palves@redhat.com>
Tue, 25 Jan 2011 09:49:59 +0000 (09:49 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 25 Jan 2011 09:49:59 +0000 (09:49 +0000)
commitefc0eabd6019406ff92286a36713d41a42515e09
treeba00441bc43cc80496e16e09e2e9ae366e2079dd
parentf30f86fa955570721c2c0c95468d975f216bf754
Simplify XML parsing a bit.

* xml-support.h (gdb_xml_parse_quick): Declare.
* xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
from gdb_xml_create_parser_and_cleanup, and added `old_chain'
parameter.
(gdb_xml_create_parser_and_cleanup): Reimplement on top of
gdb_xml_create_parser_and_cleanup_1.
(gdb_xml_parse_quick): New.
* memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
* osdata.c (osdata_parse): Ditto.
* remote.c (remote_threads_info): Ditto.
* solib-target.c (solib_target_parse_libraries): Ditto.
* xml-syscall.c (syscall_parse_xml): Ditto.
* xml-tdesc.c (tdesc_parse_xml): Ditto.
gdb/ChangeLog
gdb/memory-map.c
gdb/osdata.c
gdb/remote.c
gdb/solib-target.c
gdb/xml-support.c
gdb/xml-support.h
gdb/xml-syscall.c
gdb/xml-tdesc.c
This page took 0.032239 seconds and 4 git commands to generate.