diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-06-20 12:38:27 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-22 19:36:28 -0400 |
commit | c45cffdbe1a1b816fd9a88f88bb83bd7078a1e4e (patch) | |
tree | ce8e3f7618908cb5d1c0472b0923a91442640b92 /include/sim/callback.h | |
parent | e173c80fbb01dfed80a1b628157de3c0040d774b (diff) | |
download | gdb-c45cffdbe1a1b816fd9a88f88bb83bd7078a1e4e.zip gdb-c45cffdbe1a1b816fd9a88f88bb83bd7078a1e4e.tar.gz gdb-c45cffdbe1a1b816fd9a88f88bb83bd7078a1e4e.tar.bz2 |
sim: callback: add a getpid interface
Rather than hit the OS interface directly, use the existing callback
layer so the instantiator can decide behavior.
Diffstat (limited to 'include/sim/callback.h')
-rw-r--r-- | include/sim/callback.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sim/callback.h b/include/sim/callback.h index 4c162bc..a6c536b 100644 --- a/include/sim/callback.h +++ b/include/sim/callback.h @@ -91,6 +91,7 @@ struct host_callback_struct int (*to_lstat) (host_callback *, const char *, struct stat *); int (*ftruncate) (host_callback *, int, int64_t); int (*truncate) (host_callback *, const char *, int64_t); + int (*getpid) (host_callback *); int (*pipe) (host_callback *, int *); /* Called by the framework when a read call has emptied a pipe buffer. */ |