record: Fix thread names on 64-bit targets

Also fixes the thread names on signed char targets.

Update #3665.
This commit is contained in:
Sebastian Huber
2019-08-27 08:46:33 +02:00
parent dfdc3faa91
commit a8af7a14ec
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -211,7 +211,10 @@ static bool thread_names_visitor( rtems_tcb *tcb, void *arg )
data = 0;
for ( j = 0; i < n && j < sizeof( data ); ++j ) {
data |= name[ i ] << ( j * 8 );
rtems_record_data c;
c = (unsigned char) name[ i ];
data |= c << ( j * 8 );
++i;
}
+4 -1
View File
@@ -57,7 +57,10 @@ bool _Record_Thread_create(
data = 0;
for ( k = 0; j < n && k < sizeof( data ); ++k ) {
data |= name[ i ] << ( k * 8 );
rtems_record_data c;
c = (unsigned char) name[ i ];
data |= c << ( k * 8 );
++j;
}