2002-10-24 Fabrizio Pirovano <pirovano.thysys@tiscalinet.it>

* capture/capture.c, monitor/mon-manager.c, stackchk/check.c:
	Patch to remove problems introduced by object name rework.
This commit is contained in:
Joel Sherrill
2002-10-24 22:19:27 +00:00
parent 38ad163054
commit 12857dda9a
8 changed files with 26 additions and 10 deletions

View File

@@ -1,3 +1,8 @@
2002-10-24 Fabrizio Pirovano <pirovano.thysys@tiscalinet.it>
* capture/capture.c, monitor/mon-manager.c, stackchk/check.c:
Patch to remove problems introduced by object name rework.
2002-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2002-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* .cvsignore: Reformat. * .cvsignore: Reformat.

View File

@@ -318,7 +318,7 @@ rtems_capture_create_capture_task (rtems_tcb* new_task)
return NULL; return NULL;
} }
rtems_capture_dup_name (&task->name, *((rtems_name*) new_task->Object.name)); rtems_capture_dup_name (&task->name, ((rtems_name) new_task->Object.name));
task->id = new_task->Object.id; task->id = new_task->Object.id;
task->flags = 0; task->flags = 0;

View File

@@ -39,8 +39,11 @@ rtems_monitor_manager_next(
{ {
copy = (rtems_monitor_generic_t *) canonical; copy = (rtems_monitor_generic_t *) canonical;
copy->id = object->id; copy->id = object->id;
_Objects_Copy_name_raw(object->name, &copy->name, sizeof(copy->name)); if(table->is_string)
} _Objects_Copy_name_raw(object->name, &copy->name, sizeof(copy->name));
else
_Objects_Copy_name_raw(&object->name, &copy->name, sizeof(copy->name));
}
done: done:
return object; return object;

View File

@@ -314,7 +314,7 @@ void Stack_check_report_blown_task(void)
"BLOWN STACK!!! Offending task(%p): id=0x%08x; name=0x%08x", "BLOWN STACK!!! Offending task(%p): id=0x%08x; name=0x%08x",
running, running,
running->Object.id, running->Object.id,
*(unsigned32 *)running->Object.name (unsigned32)running->Object.name
); );
fflush(stderr); fflush(stderr);

View File

@@ -1,3 +1,8 @@
2002-10-24 Fabrizio Pirovano <pirovano.thysys@tiscalinet.it>
* capture/capture.c, monitor/mon-manager.c, stackchk/check.c:
Patch to remove problems introduced by object name rework.
2002-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2002-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* .cvsignore: Reformat. * .cvsignore: Reformat.

View File

@@ -318,7 +318,7 @@ rtems_capture_create_capture_task (rtems_tcb* new_task)
return NULL; return NULL;
} }
rtems_capture_dup_name (&task->name, *((rtems_name*) new_task->Object.name)); rtems_capture_dup_name (&task->name, ((rtems_name) new_task->Object.name));
task->id = new_task->Object.id; task->id = new_task->Object.id;
task->flags = 0; task->flags = 0;

View File

@@ -39,8 +39,11 @@ rtems_monitor_manager_next(
{ {
copy = (rtems_monitor_generic_t *) canonical; copy = (rtems_monitor_generic_t *) canonical;
copy->id = object->id; copy->id = object->id;
_Objects_Copy_name_raw(object->name, &copy->name, sizeof(copy->name)); if(table->is_string)
} _Objects_Copy_name_raw(object->name, &copy->name, sizeof(copy->name));
else
_Objects_Copy_name_raw(&object->name, &copy->name, sizeof(copy->name));
}
done: done:
return object; return object;

View File

@@ -314,7 +314,7 @@ void Stack_check_report_blown_task(void)
"BLOWN STACK!!! Offending task(%p): id=0x%08x; name=0x%08x", "BLOWN STACK!!! Offending task(%p): id=0x%08x; name=0x%08x",
running, running,
running->Object.id, running->Object.id,
*(unsigned32 *)running->Object.name (unsigned32)running->Object.name
); );
fflush(stderr); fflush(stderr);