From ce696e0556e9ddc48e7d049356a3c3fe6b7399d8 Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Sun, 6 May 2001 22:22:03 +0000 Subject: Consolidate save_inferior_ptid/restore_inferior_ptid implementation to one source file. --- gdb/thread-db.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'gdb/thread-db.c') diff --git a/gdb/thread-db.c b/gdb/thread-db.c index ab94429..2c2672a 100644 --- a/gdb/thread-db.c +++ b/gdb/thread-db.c @@ -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) { -- cgit v1.1