gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 14 Oct 2011 07:55:26 +0000 (07:55 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 14 Oct 2011 07:55:26 +0000 (07:55 +0000)
commitcb08cc53a94b7b878df56545bddfff940bb90d20
treebe3cbbdd73116b585c372f635e88c35cb9647ed0
parent970d488d05590ebfea5804e5a58e5fa7c85ac0b4
gdb/
* defs.h (struct so_list): New forward declaration.
(make_cleanup_free_so): New declaration.
* solib-svr4.c (ignore_first_link_map_entry): Remove.
(svr4_free_so): Move the function here from downwards.  Handle NULL
so->lm_info.
(svr4_free_library_list): New.
(svr4_read_so_list): New, moved here code from svr4_current_sos.
Use more cleanups.  Use new parameter ignore_first instead of
ignore_first_link_map_entry.
(svr4_current_sos): New variable ignore_first, initialize it.  New
variable back_to, use it for svr4_free_library_list protection.
(svr4_free_so): Remove - move upwards.
* utils.c: Include solist.h.
(do_free_so, make_cleanup_free_so): New functions.
gdb/ChangeLog
gdb/defs.h
gdb/solib-svr4.c
gdb/utils.c