From 08f4850b5d3069455736c80e01cde9ae3d683659 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Sat, 17 May 2014 12:18:26 -0700 Subject: [PATCH] * progspace.c (remove_program_space): Delete, unused. * progspace.h (remove_program_space): Ditto. --- gdb/ChangeLog | 5 +++++ gdb/progspace.c | 24 ------------------------ gdb/progspace.h | 3 --- 3 files changed, 5 insertions(+), 27 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d7da656..2311d77 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2014-05-17 Doug Evans + * progspace.c (remove_program_space): Delete, unused. + * progspace.h (remove_program_space): Ditto. + +2014-05-17 Doug Evans + * inferior.c (prune_inferiors): Fix comment. (remove_inferior_command): Call prune_program_spaces. diff --git a/gdb/progspace.c b/gdb/progspace.c index 14507ef..88f59f4 100644 --- a/gdb/progspace.c +++ b/gdb/progspace.c @@ -170,30 +170,6 @@ release_program_space (struct program_space *pspace) do_cleanups (old_chain); } -/* Unlinks PSPACE from the pspace list, and releases it. */ - -void -remove_program_space (struct program_space *pspace) -{ - struct program_space *ss, **ss_link; - - ss = program_spaces; - ss_link = &program_spaces; - while (ss) - { - if (ss != pspace) - { - ss_link = &ss->next; - ss = *ss_link; - continue; - } - - *ss_link = ss->next; - release_program_space (ss); - ss = *ss_link; - } -} - /* Copies program space SRC to DEST. Copies the main executable file, and the main symbol file. Returns DEST. */ diff --git a/gdb/progspace.h b/gdb/progspace.h index 4cd593a..08e04eb 100644 --- a/gdb/progspace.h +++ b/gdb/progspace.h @@ -236,9 +236,6 @@ extern struct program_space *current_program_space; pointer to the new object. */ extern struct program_space *add_program_space (struct address_space *aspace); -/* Release PSPACE and removes it from the pspace list. */ -extern void remove_program_space (struct program_space *pspace); - /* Returns the number of program spaces listed. */ extern int number_of_program_spaces (void); -- 2.7.4