diff options
Diffstat (limited to 'sim/aarch64/interp.c')
-rw-r--r-- | sim/aarch64/interp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/aarch64/interp.c b/sim/aarch64/interp.c index 4d7f421..3289953 100644 --- a/sim/aarch64/interp.c +++ b/sim/aarch64/interp.c @@ -126,6 +126,7 @@ sim_create_inferior (SIM_DESC sd, struct bfd *abfd, char * const *argv, char * const *env) { sim_cpu *cpu = STATE_CPU (sd, 0); + host_callback *cb = STATE_CALLBACK (sd); bfd_vma addr = 0; if (abfd != NULL) @@ -150,6 +151,9 @@ sim_create_inferior (SIM_DESC sd, struct bfd *abfd, STATE_PROG_ENVP (sd) = dupargv (env); } + cb->argv = STATE_PROG_ARGV (sd); + cb->envp = STATE_PROG_ENVP (sd); + if (trace_load_symbols (sd)) { STATE_PROG_SYMS_COUNT (sd) = |