mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-19 01:19:41 +08:00
sim: callback: add a getpid interface
Rather than hit the OS interface directly, use the existing callback layer so the instantiator can decide behavior.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2021-06-22 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* sim/callback.h (struct host_callback_struct): Add getpid.
|
||||
|
||||
2021-05-14 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* sim/callback.h (struct host_callback_struct): Change lseek return and
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user