forked from Imagelibrary/binutils-gdb
Consolidate save_inferior_ptid/restore_inferior_ptid implementation to
one source file.
This commit is contained in:
@@ -150,27 +150,6 @@ struct private_thread_info
|
||||
};
|
||||
|
||||
|
||||
/* Helper functions. */
|
||||
|
||||
static void
|
||||
restore_inferior_ptid (void *arg)
|
||||
{
|
||||
ptid_t *saved_ptid_ptr = arg;
|
||||
inferior_ptid = *saved_ptid_ptr;
|
||||
xfree (arg);
|
||||
}
|
||||
|
||||
static struct cleanup *
|
||||
save_inferior_ptid (void)
|
||||
{
|
||||
ptid_t *saved_ptid_ptr;
|
||||
|
||||
saved_ptid_ptr = xmalloc (sizeof (ptid_t));
|
||||
*saved_ptid_ptr = inferior_ptid;
|
||||
return make_cleanup (restore_inferior_ptid, saved_ptid_ptr);
|
||||
}
|
||||
|
||||
|
||||
static char *
|
||||
thread_db_err_str (td_err_e err)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user