diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2007-11-15 06:24:17 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2007-11-15 06:24:17 +0000 |
commit | 615b9dba457a9d625112f48bb3171baa710750ea (patch) | |
tree | 5a0fffb98fb0320b5d082abb2d230541d5caf839 /gdb/solib.c | |
parent | 7a72d44c5c8311b4109ccb0e3e3e8cd650c49177 (diff) | |
download | gdb-615b9dba457a9d625112f48bb3171baa710750ea.zip gdb-615b9dba457a9d625112f48bb3171baa710750ea.tar.gz gdb-615b9dba457a9d625112f48bb3171baa710750ea.tar.bz2 |
Remove 'run_cleanup'.
* defs.h (do_run_cleanups, make_run_cleanup): Remove
declarations.
* infcmd.c (run_command_1): Call clear_solib instead
of do_run_cleanups.
* jv-lang.c (java_rerun_cleanup): Remove, for lack of
any use.
* solib.c (solib_cleanup_queued, do_clear_solib): Remove.
(update_solib_lib): Don't setup run cleanup.
(no_shared_libraries): Call clear_solib, not do_clear_solib.
* utils.c (run_cleanup_chain, make_run_cleanup)
(do_run_cleanups): Remove.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r-- | gdb/solib.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/gdb/solib.c b/gdb/solib.c index f687558..0ec0a51 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -86,12 +86,8 @@ struct target_so_ops *current_target_so_ops; static struct so_list *so_list_head; /* List of known shared objects */ -static int solib_cleanup_queued = 0; /* make_run_cleanup called */ - /* Local function prototypes */ -static void do_clear_solib (void *); - /* If non-empty, this is a search path for loading non-absolute shared library symbol files. This takes precedence over the environment variables PATH and LD_LIBRARY_PATH. */ @@ -506,15 +502,6 @@ update_solib_list (int from_tty, struct target_ops *target) "Error reading attached process's symbol file.\n", RETURN_MASK_ALL); - /* Since this function might actually add some elements to the - so_list_head list, arrange for it to be cleaned up when - appropriate. */ - if (!solib_cleanup_queued) - { - make_run_cleanup (do_clear_solib, NULL); - solib_cleanup_queued = 1; - } - /* GDB and the inferior's dynamic linker each maintain their own list of currently loaded shared objects; we want to bring the former in sync with the latter. Scan both lists, seeing which @@ -866,13 +853,6 @@ clear_solib (void) ops->clear_solib (); } -static void -do_clear_solib (void *dummy) -{ - solib_cleanup_queued = 0; - clear_solib (); -} - /* GLOBAL FUNCTION solib_create_inferior_hook -- shared library startup support @@ -955,7 +935,7 @@ void no_shared_libraries (char *ignored, int from_tty) { objfile_purge_solibs (); - do_clear_solib (NULL); + clear_solib (); } static void |