Changeset ce8e6a8 in rtems for c/src/librdbg/src/ptrace.c


Ignore:
Timestamp:
Jul 1, 2002, 10:14:25 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
8d3b3be
Parents:
35290c9
Message:

2002-07-01 Joel Sherrill <joel@…>

  • src/_servtgt.c, src/ptrace.c: Corrected use of _Objects_Information_table now that it is a two dimensional array based upon API and class.
File:
1 edited

Legend:

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

    r35290c9 rce8e6a8  
    3636  unsigned index;
    3737
    38   if (Id < _Objects_Information_table[OBJECTS_RTEMS_TASKS]->maximum_id &&
    39       Id > _Objects_Information_table[OBJECTS_RTEMS_TASKS]->minimum_id) {
    40 
    41     index = Id - _Objects_Information_table[OBJECTS_RTEMS_TASKS]->minimum_id;
    42     if (_Objects_Information_table[OBJECTS_RTEMS_TASKS]->local_table[1 + index] != NULL) {
    43       return (Thread_Control*) (_Objects_Information_table[OBJECTS_RTEMS_TASKS]->local_table[1 + index]);
     38  if (Id < _Objects_Information_table[OBJECTS_CLASSIC_API][1]->maximum_id &&
     39      Id > _Objects_Information_table[OBJECTS_CLASSIC_API][1]->minimum_id) {
     40
     41    index = Id - _Objects_Information_table[OBJECTS_CLASSIC_API][1]->minimum_id;
     42    if (_Objects_Information_table[OBJECTS_CLASSIC_API][1]->local_table[1 + index] != NULL) {
     43      return (Thread_Control*) (_Objects_Information_table[OBJECTS_CLASSIC_API][1]->local_table[1 + index]);
    4444    }
    4545  }
    4646
    47   if (Id < _Objects_Information_table[OBJECTS_POSIX_THREADS]->maximum_id &&
    48       Id > _Objects_Information_table[OBJECTS_POSIX_THREADS]->minimum_id) {
    49 
    50     index = Id - _Objects_Information_table[OBJECTS_POSIX_THREADS]->minimum_id;
    51     if (_Objects_Information_table[OBJECTS_POSIX_THREADS]->
     47  if (Id < _Objects_Information_table[OBJECTS_POSIX_API][1]->maximum_id &&
     48      Id > _Objects_Information_table[OBJECTS_POSIX_API][1]->minimum_id) {
     49
     50    index = Id - _Objects_Information_table[OBJECTS_POSIX_API][1]->minimum_id;
     51    if (_Objects_Information_table[OBJECTS_POSIX_API][1]->
    5252        local_table[1 + index] != NULL)
    53       return (Thread_Control*) (_Objects_Information_table[OBJECTS_POSIX_THREADS]->local_table[1 + index]);
     53      return (Thread_Control*) (_Objects_Information_table[OBJECTS_POSIX_API][1]->local_table[1 + index]);
    5454  }
    5555
Note: See TracChangeset for help on using the changeset viewer.