OSDN Git Service

gdb/
authorjkratoch <jkratoch>
Fri, 14 Oct 2011 07:55:21 +0000 (07:55 +0000)
committerjkratoch <jkratoch>
Fri, 14 Oct 2011 07:55:21 +0000 (07:55 +0000)
commitdd59dc59e3611be303475b65e2b6f4554e6f254e
treea0c4fa850dd03b1cfc75fe465dc3399457b16a3b
parent2e708507d669512852326ddbad0501c693f77886
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