Changeset 145fc8c in rtems for c/src/librdbg/src/_servtgt.c
- Timestamp:
- 11/04/02 22:19:11 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 8491956
- Parents:
- 1740467b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/librdbg/src/_servtgt.c
r1740467b r145fc8c 286 286 { /* Output buffer size */ 287 287 int curr = 0; 288 Objects_Id id; 288 int api; 289 Objects_Id id, min_id, max_id; 289 290 unsigned index; 290 291 291 id = _Objects_Information_table[OBJECTS_CLASSIC_API][1]->minimum_id; 292 293 while (id < _Objects_Information_table[OBJECTS_CLASSIC_API][1]->maximum_id) { 294 index = id - _Objects_Information_table[OBJECTS_CLASSIC_API][1]->minimum_id; 295 if (_Objects_Information_table[OBJECTS_CLASSIC_API][1]-> 296 local_table[1 + index] != NULL) { 297 threads[curr] = (unsigned) id; 298 curr++; 292 for ( api=OBJECTS_CLASSIC_API ; api <= OBJECTS_ITRON_API ; api++ ) { 293 min_id = _Objects_Information_table[api][1]->minimum_id; 294 max_id = _Objects_Information_table[api][1]->maximum_id; 295 id = min_id; 296 297 while (id < max_id) { 298 index = id - min_id; 299 if (_Objects_Information_table[api][1]->local_table[1 + index] != NULL) { 300 threads[curr] = (unsigned) id; 301 curr++; 302 } 303 id++; 299 304 } 300 id++; 301 } 302 303 id = _Objects_Information_table[OBJECTS_POSIX_API][1]->minimum_id; 304 305 while (id < _Objects_Information_table[OBJECTS_POSIX_API][1]->maximum_id) { 306 index = 307 id - _Objects_Information_table[OBJECTS_POSIX_API][1]->minimum_id; 308 if (_Objects_Information_table[OBJECTS_POSIX_API][1]-> 309 local_table[1 + index] != NULL) { 310 threads[curr] = (unsigned) id; 311 curr++; 312 } 313 id++; 314 } 315 316 #warning "ignores ITRON tasks and could be a single loop" 305 } 317 306 318 307 return curr;
Note: See TracChangeset
for help on using the changeset viewer.