forked from Imagelibrary/binutils-gdb
sim: callback: add a kill interface
This will make it easier to emulate the syscall. If the kill target is the sim itself, don't do anything. This forces the higher layers to make a decision as to how to handle this event: like halting the overall engine process.
This commit is contained in:
@@ -92,6 +92,7 @@ struct host_callback_struct
|
||||
int (*ftruncate) (host_callback *, int, int64_t);
|
||||
int (*truncate) (host_callback *, const char *, int64_t);
|
||||
int (*getpid) (host_callback *);
|
||||
int (*kill) (host_callback *, int, int);
|
||||
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