From 8cfc9a1895d9f720e2cc38fd57b94ca5efba07b1 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 15 Nov 2021 23:04:10 -0500 Subject: sim: callback: expose argv & environ Pass the existing strings data to the callbacks so that common libgloss syscalls can be implemented (which we'll do shortly). --- include/sim/callback.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/sim/callback.h b/include/sim/callback.h index 06aa2d4..a51c4de 100644 --- a/include/sim/callback.h +++ b/include/sim/callback.h @@ -178,6 +178,12 @@ struct host_callback_struct enum bfd_endian target_endian; + /* Program command line options. */ + char **argv; + + /* Program environment. */ + char **envp; + /* Size of an "int" on the target (for syscalls whose ABI uses "int"). This must include padding, and only padding-at-higher-address is supported. For example, a 64-bit target with 32-bit int:s which -- cgit v1.1