mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-02 12:37:05 +08:00
* progspace.c (remove_program_space): Delete, unused.
* progspace.h (remove_program_space): Ditto.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2014-05-17 Doug Evans <xdje42@gmail.com>
|
||||||
|
|
||||||
|
* progspace.c (remove_program_space): Delete, unused.
|
||||||
|
* progspace.h (remove_program_space): Ditto.
|
||||||
|
|
||||||
2014-05-17 Doug Evans <xdje42@gmail.com>
|
2014-05-17 Doug Evans <xdje42@gmail.com>
|
||||||
|
|
||||||
* inferior.c (prune_inferiors): Fix comment.
|
* inferior.c (prune_inferiors): Fix comment.
|
||||||
|
@ -170,30 +170,6 @@ release_program_space (struct program_space *pspace)
|
|||||||
do_cleanups (old_chain);
|
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,
|
/* Copies program space SRC to DEST. Copies the main executable file,
|
||||||
and the main symbol file. Returns DEST. */
|
and the main symbol file. Returns DEST. */
|
||||||
|
|
||||||
|
@ -236,9 +236,6 @@ extern struct program_space *current_program_space;
|
|||||||
pointer to the new object. */
|
pointer to the new object. */
|
||||||
extern struct program_space *add_program_space (struct address_space *aspace);
|
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. */
|
/* Returns the number of program spaces listed. */
|
||||||
extern int number_of_program_spaces (void);
|
extern int number_of_program_spaces (void);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user