Generate a debug event for a loaded user image. When a debugged team
exec*()ed, the debugger never got notified that a runtime loader image was created. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27773 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f711e9dc45
commit
99409ebb19
@ -1528,7 +1528,9 @@ elf_load_user_image(const char *path, struct team *team, int flags,
|
||||
imageInfo.node = st.st_ino;
|
||||
strlcpy(imageInfo.name, path, sizeof(imageInfo.name));
|
||||
|
||||
register_image(team, &imageInfo, sizeof(image_info));
|
||||
imageInfo.id = register_image(team, &imageInfo, sizeof(image_info));
|
||||
if (imageInfo.id >= 0 && team_get_current_team_id() == team->id)
|
||||
user_debug_image_created(&imageInfo);
|
||||
// Don't care, if registering fails. It's not crucial.
|
||||
|
||||
TRACE(("elf_load: done!\n"));
|
||||
|
Loading…
Reference in New Issue
Block a user