kernel/debug: Report team/thread exit status
Add a field to `debug_[team/thread]_deleted` to report the exit status on the corresponding events. This is useful for debuggers like GDB expecting a return value when one of their inferiors quit. Also add a `usage` field to `debug_team_deleted` since this is another potentially useful piece of information exposed by the `waitpid` family of syscalls. Change-Id: Ieff7c31f56b1b9f8f709725d19050273b21f2504 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7736 Tested-by: Commit checker robot <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
7a5148b345
commit
9631ca7349
@@ -258,11 +258,12 @@ bool user_debug_handle_signal(int signal, struct sigaction *handler,
|
||||
siginfo_t *info, bool deadly);
|
||||
void user_debug_stop_thread();
|
||||
void user_debug_team_created(team_id teamID);
|
||||
void user_debug_team_deleted(team_id teamID, port_id debuggerPort);
|
||||
void user_debug_team_deleted(team_id teamID, port_id debuggerPort, status_t status,
|
||||
team_usage_info* usageInfo);
|
||||
void user_debug_team_exec();
|
||||
void user_debug_update_new_thread_flags(Thread* thread);
|
||||
void user_debug_thread_created(thread_id threadID);
|
||||
void user_debug_thread_deleted(team_id teamID, thread_id threadID);
|
||||
void user_debug_thread_deleted(team_id teamID, thread_id threadID, status_t status);
|
||||
void user_debug_thread_exiting(Thread* thread);
|
||||
void user_debug_image_created(const image_info *imageInfo);
|
||||
void user_debug_image_deleted(const image_info *imageInfo);
|
||||
|
||||
Reference in New Issue
Block a user