]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - sim/ft32/interp.c
sim: keep track of program environment strings
authorMike Frysinger <vapier@gentoo.org>
Tue, 16 Nov 2021 04:00:04 +0000 (23:00 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 16 Nov 2021 05:58:41 +0000 (00:58 -0500)
commit54f7a83a62c27d6da9ee66da1022572d6ea45d84
treeeb0670d282c37c15e28f3f4b3344285d7581399d
parent38f9e52086c8d513bc7ef713043c03752924df89
sim: keep track of program environment strings

We've been passing the environment strings to sim_create_inferior,
but most ports don't do anything with them.  A few will use ad-hoc
logic to stuff the stack for user-mode programs, but that's it.

Let's formalize this across the board by storing the strings in the
normal sim state.  This will allow (in future commits) supporting
more functionality in the run interface, and to unify some of the
libgloss syscalls.
14 files changed:
sim/aarch64/interp.c
sim/bfin/interp.c
sim/bpf/sim-if.c
sim/common/sim-base.h
sim/common/sim-utils.c
sim/cris/sim-if.c
sim/example-synacor/interp.c
sim/frv/sim-if.c
sim/ft32/interp.c
sim/iq2000/sim-if.c
sim/lm32/sim-if.c
sim/m32r/sim-if.c
sim/pru/interp.c
sim/riscv/interp.c