Changeset 145fc8c in rtems for c/src/librdbg/src/_servtgt.c


Ignore:
Timestamp:
Nov 4, 2002, 10:19:11 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
8491956
Parents:
1740467b
Message:

2002-11-04 Joel Sherrill <joel@…>

  • src/_servtgt.c: Removed warning by adding support for ITRON tasks and rolling multiple loops into 1.
  • src/m68k/rdbg_f.c: Removed warning.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/librdbg/src/_servtgt.c

    r1740467b r145fc8c  
    286286{                               /* Output buffer size */
    287287  int curr = 0;
    288   Objects_Id id;
     288  int api;
     289  Objects_Id id, min_id, max_id;
    289290  unsigned index;
    290291
    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++;
    299304    }
    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  }
    317306
    318307  return curr;
Note: See TracChangeset for help on using the changeset viewer.