From patchwork Tue Jun 23 18:39:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 7311 Received: (qmail 6834 invoked by alias); 23 Jun 2015 18:39:53 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 6823 invoked by uid 89); 23 Jun 2015 18:39:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pd0-f202.google.com Received: from mail-pd0-f202.google.com (HELO mail-pd0-f202.google.com) (209.85.192.202) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 23 Jun 2015 18:39:52 +0000 Received: by pdjp10 with SMTP id p10so1364197pdj.0 for ; Tue, 23 Jun 2015 11:39:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:message-id:date:subject:from:to :content-type; bh=7c/zZhXc6hWQDfvMoGQR25jCbzt9xNDHec9F1Y83a1U=; b=QW3pO5JNacnSVGTyq3XH9T/mz7ExvL+r1V4DR0JjpZzzVy6rqCLUFE+y4gEyJOJfbK qcw2RRVvj7qkwuNq3iJNJJvjyjhVZ4KiWoc71D4+dd3PTnd9jRSQkvCLFMH3HYmxumUN vUPeM6ZPWHDzbtjEu8yiIrDgpu7M7pUiFNBdQhIc7bV6wdNsjCEQ7z327NlRiay5hLIH QlykSYvSIj8OKOIGUTi9Q6CO+AG/8s0w0UKOs2N99IPzX45IjvJ5x82ycdGXp9Dit/pd 4y5L4BZQ/ZEqq2c27EphlefWnb7n39t0blHbxy4CaycQEQ3zNhdVB9BEwhd5Sj/gcgFI n2XA== X-Gm-Message-State: ALoCoQkgUr1ubocIqmQx/BvzVfCPmr1qf6vO4dr7N0OroNJzoiM1/0EUzUfwarbF1Ub4/R1syjuOhjR+QJb3XURGmY2mZAqBXcuNawk6VN59hiNcW9UFnaZIgMGgzmnzgvWY7cdZAM75EXsySsxCPWu7VA9ohTHqjnVLB2uQ/AEWTksrO26ypzI= MIME-Version: 1.0 X-Received: by 10.66.140.106 with SMTP id rf10mr45105676pab.41.1435084790568; Tue, 23 Jun 2015 11:39:50 -0700 (PDT) Message-ID: <001a113333782a50fa051933b7a7@google.com> Date: Tue, 23 Jun 2015 18:39:50 +0000 Subject: [OB PATCH] inferior.h (struct inferior_suspend_state): Delete, unused. From: Doug Evans To: gdb-patches@sourceware.org X-IsSubscribed: yes Hi. Committed as obvious. 2015-06-23 Doug Evans * inferior.h (struct inferior_suspend_state): Delete, unused. All references deleted. CORE_ADDR stop_pc; @@ -7278,9 +7275,6 @@ save_infcall_suspend_state (void) { struct infcall_suspend_state *inf_state; struct thread_info *tp = inferior_thread (); -#if 0 - struct inferior *inf = current_inferior (); -#endif struct regcache *regcache = get_current_regcache (); struct gdbarch *gdbarch = get_regcache_arch (regcache); gdb_byte *siginfo_data = NULL; @@ -7314,9 +7308,6 @@ save_infcall_suspend_state (void) } inf_state->thread_suspend = tp->suspend; -#if 0 /* Currently unused and empty structures are not valid C. */ - inf_state->inferior_suspend = inf->suspend; -#endif /* run_inferior_call will not use the signal due to its `proceed' call with GDB_SIGNAL_0 anyway. */ @@ -7335,16 +7326,10 @@ void restore_infcall_suspend_state (struct infcall_suspend_state *inf_state) { struct thread_info *tp = inferior_thread (); -#if 0 - struct inferior *inf = current_inferior (); -#endif struct regcache *regcache = get_current_regcache (); struct gdbarch *gdbarch = get_regcache_arch (regcache); tp->suspend = inf_state->thread_suspend; -#if 0 /* Currently unused and empty structures are not valid C. */ - inf->suspend = inf_state->inferior_suspend; -#endif stop_pc = inf_state->stop_pc; diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h index 0926f5f..fefad48 100644 --- a/gdb/gdbthread.h +++ b/gdb/gdbthread.h @@ -145,9 +145,7 @@ struct thread_control_state int stepping_command; }; -/* Inferior thread specific part of `struct infcall_suspend_state'. - - Inferior process counterpart is `struct inferior_suspend_state'. */ +/* Inferior thread specific part of `struct infcall_suspend_state'. */ struct thread_suspend_state { diff --git a/gdb/inferior.h b/gdb/inferior.h index 0d242fe..2054a2a 100644 --- a/gdb/inferior.h +++ b/gdb/inferior.h @@ -276,16 +276,6 @@ struct inferior_control_state enum stop_kind stop_soon; }; -/* Inferior process specific part of `struct infcall_suspend_state'. - - Inferior thread counterpart is `struct thread_suspend_state'. */ - -#if 0 /* Currently unused and empty structures are not valid C. */ -struct inferior_suspend_state -{ -}; -#endif - /* GDB represents the state of each program execution with an object called an inferior. An inferior typically corresponds to a process but is more general and applies also to targets that do not have a @@ -314,12 +304,6 @@ struct inferior See `struct inferior_control_state'. */ struct inferior_control_state control; - /* State of inferior process to restore after GDB is done with an inferior - call. See `struct inferior_suspend_state'. */ -#if 0 /* Currently unused and empty structures are not valid C. */ - struct inferior_suspend_state suspend; -#endif - /* True if this was an auto-created inferior, e.g. created from following a fork; false, if this inferior was manually added by the user, and we should not attempt to prune it diff --git a/gdb/infrun.c b/gdb/infrun.c index d8eb0b0..233d0f8 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -7256,9 +7256,6 @@ siginfo_make_value (struct gdbarch *gdbarch, struct internalvar *var, struct infcall_suspend_state { struct thread_suspend_state thread_suspend; -#if 0 /* Currently unused and empty structures are not valid C. */ - struct inferior_suspend_state inferior_suspend; -#endif /* Other fields: */