aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-10-14 07:55:26 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-10-14 07:55:26 +0000
commitcb08cc53a94b7b878df56545bddfff940bb90d20 (patch)
treebe3cbbdd73116b585c372f635e88c35cb9647ed0 /gdb/defs.h
parent970d488d05590ebfea5804e5a58e5fa7c85ac0b4 (diff)
downloadgdb-cb08cc53a94b7b878df56545bddfff940bb90d20.zip
gdb-cb08cc53a94b7b878df56545bddfff940bb90d20.tar.gz
gdb-cb08cc53a94b7b878df56545bddfff940bb90d20.tar.bz2
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.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 0a0543e..d0b6813 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -375,6 +375,9 @@ extern struct cleanup *
extern struct cleanup *make_cleanup_value_free_to_mark (struct value *);
extern struct cleanup *make_cleanup_value_free (struct value *);
+struct so_list;
+extern struct cleanup *make_cleanup_free_so (struct so_list *so);
+
extern struct cleanup *make_final_cleanup (make_cleanup_ftype *, void *);
extern struct cleanup *make_my_cleanup (struct cleanup **,