This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] sim: cgen: drop unused argv/envp definitions
- From: Michael Frysinger <vapier at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 13 Aug 2016 20:48:24 -0000
- Subject: [binutils-gdb] sim: cgen: drop unused argv/envp definitions
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6b97945424f3714d2f9f6866079fd2bc658f4285
commit 6b97945424f3714d2f9f6866079fd2bc658f4285
Author: Mike Frysinger <vapier@gentoo.org>
Date: Thu Jan 21 21:04:18 2016 -0500
sim: cgen: drop unused argv/envp definitions
The common argv/envp are used now by all ports, so drop this old
cgen fragment.
Diff:
---
sim/common/ChangeLog | 5 +++++
sim/common/cgen-defs.h | 8 --------
2 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 0483f8a..868553b 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,8 @@
+2016-08-13 Mike Frysinger <vapier@gentoo.org>
+
+ * cgen-defs.h (struct cgen_state): Delete argv and envp.
+ (STATE_ARGV, STATE_ENVP): Delete.
+
2016-02-04 Nick Clifton <nickc@redhat.com>
* cgen-scache.c (scache_option_handler): Prevent possible
diff --git a/sim/common/cgen-defs.h b/sim/common/cgen-defs.h
index c42db9b..c90fe3c 100644
--- a/sim/common/cgen-defs.h
+++ b/sim/common/cgen-defs.h
@@ -144,14 +144,6 @@ typedef enum {
sim_state_base. */
typedef struct cgen_state {
- /* FIXME: Moved to sim_state_base. */
- /* argv, env */
- char **argv;
-#define STATE_ARGV(s) ((s) -> cgen_state.argv)
- /* FIXME: Move to sim_state_base. */
- char **envp;
-#define STATE_ENVP(s) ((s) -> cgen_state.envp)
-
/* Non-zero if no tracing or profiling is selected. */
int run_fast_p;
#define STATE_RUN_FAST_P(sd) ((sd) -> cgen_state.run_fast_p)