mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 09:58:19 +08:00
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.
This commit is contained in:
@ -99,6 +99,7 @@ sim_state_free (SIM_DESC sd)
|
||||
|
||||
free (STATE_PROG_FILE (sd));
|
||||
free (STATE_PROG_ARGV0 (sd));
|
||||
freeargv (STATE_PROG_ENVP (sd));
|
||||
free (sd);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user