B_CURRENT_TEAM
#ifndef B_CURRENT_TEAM
if ((res = get_memory_map_etc(B_CURRENT_TEAM, range_start, range_len,
status_t status = get_memory_map_etc(B_CURRENT_TEAM, data, dataSize,
if (debug_memcpy(B_CURRENT_TEAM, &buffer, (const void*)(baseAddress + offset),
&& debug_memcpy(B_CURRENT_TEAM, &buffer, (const void*)address, sizeof(buffer)) == B_OK
area_id area = vm_clone_area(B_CURRENT_TEAM, "cloned framebuffer",
area_id area = vm_clone_area(B_CURRENT_TEAM, "cloned framebuffer",
while (get_next_image_info(B_CURRENT_TEAM, &cookie, &image) == B_OK) {
get_team_info(B_CURRENT_TEAM, &info);
while (get_next_image_info(B_CURRENT_TEAM, &cookie, &image) == B_OK) {
while (get_next_image_info(B_CURRENT_TEAM, &cookie, &image) == B_OK) {
while (get_next_image_info(B_CURRENT_TEAM, &cookie, &info) == B_OK) {
get_team_info(B_CURRENT_TEAM, &teamInfo);
get_team_usage_info(B_CURRENT_TEAM, B_TEAM_USAGE_CHILDREN, &childUsage);
while (get_next_image_info(B_CURRENT_TEAM, &cookie, &image) == B_OK) {
while (get_next_image_info(B_CURRENT_TEAM, &cookie, info) == B_OK) {
return get_app_ref(B_CURRENT_TEAM, ref, traverse);
return get_app_path(B_CURRENT_TEAM, buffer);
get_team_info(B_CURRENT_TEAM, &teamInfo);
error = get_team_info(B_CURRENT_TEAM, &info);
while (get_next_image_info(B_CURRENT_TEAM, &cookie, &info) == B_OK) {
while (get_next_image_info(B_CURRENT_TEAM, &cookie, &image) == B_OK) {
get_team_info(B_CURRENT_TEAM, &teamInfo);
while (get_next_image_info(B_CURRENT_TEAM, &cookie, &image) == B_OK) {
teamID = B_CURRENT_TEAM;
teamID = B_CURRENT_TEAM;
if (debug_memcpy(B_CURRENT_TEAM, &value, argument, sizeof(Type)) == B_OK) {
if (debug_memcpy(B_CURRENT_TEAM, &argValue, arg, 4) == B_OK) {
else if (debug_strlcpy(B_CURRENT_TEAM, buffer, (char*)(addr_t)value,
if (debug_memcpy(B_CURRENT_TEAM, &argValue, arg, 4) == B_OK) {
else if (debug_strlcpy(B_CURRENT_TEAM, buffer, (char*)(addr_t)value,
if (debug_memcpy(B_CURRENT_TEAM, &value, argument, sizeof(Type)) == B_OK) {
if (debug_memcpy(B_CURRENT_TEAM, &frame, (void*)framePointer, sizeof(frame))
if (debug_memcpy(B_CURRENT_TEAM, &frame, (void*)framePointer, sizeof(frame))
if (debug_memcpy(B_CURRENT_TEAM, &frame, (stack_frame*)fp - 1, sizeof(frame)) != B_OK)
if (debug_memcpy(B_CURRENT_TEAM, &value, argument, sizeof(Type)) == B_OK) {
if (debug_memcpy(B_CURRENT_TEAM, &argValue, arg, 4) == B_OK) {
else if (debug_strlcpy(B_CURRENT_TEAM, buffer, (char*)(addr_t)value,
if (debug_memcpy(B_CURRENT_TEAM, &frame, (void*)bp, sizeof(frame)) != B_OK)
status_t status = debug_memcpy(B_CURRENT_TEAM, &pointer,
return debug_strlcpy(B_CURRENT_TEAM, name, pointer, size);
if (teamID == B_CURRENT_TEAM)
if (debug_memcpy(B_CURRENT_TEAM, &buffer, address, size) != B_OK) {
if (debug_memcpy(B_CURRENT_TEAM, address, &buffer, size) != B_OK) {
if (debug_memcpy(B_CURRENT_TEAM, sSafeMemory, (char*)address, len)
if (teamID == B_CURRENT_TEAM)
set_port_owner(info->nub_port, B_CURRENT_TEAM);
set_port_owner(nubPort, B_CURRENT_TEAM);
port_id port = install_team_debugger(B_CURRENT_TEAM, -1,
if (teamID == B_CURRENT_TEAM)
return debug_strlcpy(B_CURRENT_TEAM, buffer, address, bufferSize)
return debug_memcpy(B_CURRENT_TEAM, &data, address, sizeof(T)) == B_OK;
fInitStatus = vm_wire_page(B_CURRENT_TEAM, (addr_t)mutex, true,
while (get_next_area_info(B_CURRENT_TEAM, &areaCookie, &info) == B_OK) {
B_CURRENT_TEAM, B_WAIT_TILL_LOADED);
argCount, envCount, priority, B_CURRENT_TEAM, flags, errorPort,
if (id == B_CURRENT_TEAM) {
if (team == B_CURRENT_TEAM)
if (team == B_CURRENT_TEAM)
if (team == B_CURRENT_TEAM)
return lock_memory_etc(B_CURRENT_TEAM, address, numBytes, flags);
if (team == B_CURRENT_TEAM)
return unlock_memory_etc(B_CURRENT_TEAM, address, numBytes, flags);
if (team == B_CURRENT_TEAM)
status_t error = get_memory_map_etc(B_CURRENT_TEAM, address, numBytes,
if (team == B_CURRENT_TEAM)
if (teamID != B_CURRENT_TEAM && teamID != team_get_current_team_id()
status_t error = lock_memory_etc(B_CURRENT_TEAM,
unlock_memory_etc(B_CURRENT_TEAM,
if (debug_memcpy(B_CURRENT_TEAM, &c, (char*)copyAddress + i, 1)
if (debug_memcpy(B_CURRENT_TEAM, &c,
if (debug_memcpy(B_CURRENT_TEAM, &value,
} else if (teamID == B_CURRENT_TEAM) {
if (get_next_image_info(B_CURRENT_TEAM, (int32*)&cookie, &info) != B_OK)
&& get_next_image_info(B_CURRENT_TEAM, (int32*)&cookie, &info) == B_OK);
while (get_next_image_info(B_CURRENT_TEAM, &cookie, &_info) == B_OK) {
while (get_next_area_info(B_CURRENT_TEAM, &cookie, &info) == B_OK) {
if (get_team_usage_info(B_CURRENT_TEAM, who, &info) != B_OK) {
while (get_next_thread_info(B_CURRENT_TEAM, &th_cookie, &thread) == B_OK)
if ((err = get_team_usage_info(B_CURRENT_TEAM, RUSAGE_SELF, &info))
if ((err = get_team_usage_info(B_CURRENT_TEAM, RUSAGE_CHILDREN, &info))
status = get_commpage_image_id(B_CURRENT_TEAM);
while (_kern_get_next_image_info(B_CURRENT_TEAM, &cookie, &info,
while (get_next_image_info(B_CURRENT_TEAM, &cookie, &info) == B_OK) {
while (get_next_sem_info(B_CURRENT_TEAM, &cookie, &semInfo) == B_OK)
get_team_info(B_CURRENT_TEAM, &teamInfo);
get_team_info(B_CURRENT_TEAM, &teamInfo);