4.104.114.84.95
Last change
on this file since 5e622a9 was
12857dd,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/24/02 at 22:19:27
|
2002-10-24 Fabrizio Pirovano <pirovano.thysys@…>
- capture/capture.c, monitor/mon-manager.c, stackchk/check.c:
Patch to remove problems introduced by object name rework.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[b06e68ef] | 1 | /* |
---|
[8389628] | 2 | * RTEMS Monitor "manager" support. |
---|
| 3 | * Used to traverse object (chain) lists and print them out. |
---|
[72c440e] | 4 | * |
---|
[b06e68ef] | 5 | * $Id$ |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include <rtems.h> |
---|
[5beb562] | 9 | #include <rtems/monitor.h> |
---|
[b06e68ef] | 10 | |
---|
| 11 | #include <stdio.h> |
---|
| 12 | |
---|
| 13 | /* |
---|
| 14 | * "next" routine for all objects that are RTEMS manager objects |
---|
| 15 | */ |
---|
| 16 | |
---|
| 17 | void * |
---|
| 18 | rtems_monitor_manager_next( |
---|
| 19 | void *table_void, |
---|
| 20 | void *canonical, |
---|
| 21 | rtems_id *next_id |
---|
| 22 | ) |
---|
| 23 | { |
---|
| 24 | Objects_Information *table = table_void; |
---|
| 25 | rtems_monitor_generic_t *copy; |
---|
| 26 | Objects_Control *object = 0; |
---|
[be95da0] | 27 | Objects_Locations location; |
---|
[b06e68ef] | 28 | |
---|
| 29 | /* |
---|
| 30 | * When we are called, it must be local |
---|
| 31 | */ |
---|
| 32 | |
---|
| 33 | if ( ! _Objects_Is_local_id(*next_id)) |
---|
| 34 | goto done; |
---|
| 35 | |
---|
| 36 | object = _Objects_Get_next(table, *next_id, &location, next_id); |
---|
| 37 | |
---|
| 38 | if (object) |
---|
| 39 | { |
---|
| 40 | copy = (rtems_monitor_generic_t *) canonical; |
---|
| 41 | copy->id = object->id; |
---|
[12857dd] | 42 | if(table->is_string) |
---|
| 43 | _Objects_Copy_name_raw(object->name, ©->name, sizeof(copy->name)); |
---|
| 44 | else |
---|
| 45 | _Objects_Copy_name_raw(&object->name, ©->name, sizeof(copy->name)); |
---|
| 46 | } |
---|
| 47 | |
---|
[b06e68ef] | 48 | done: |
---|
| 49 | return object; |
---|
| 50 | } |
---|
| 51 | |
---|
Note: See
TracBrowser
for help on using the repository browser.