score: Add debug support to chains

This helps to detect

 * double insert, append, prepend errors, and
 * get from empty chain errors.
This commit is contained in:
Sebastian Huber
2016-07-22 09:13:07 +02:00
parent 3cdda03c5a
commit 059529e685
17 changed files with 116 additions and 11 deletions
+1
View File
@@ -76,6 +76,7 @@ static void add_to_chain(
rtems_rbheap_chunk *chunk
)
{
rtems_chain_initialize_node(&chunk->chain_node);
rtems_chain_prepend_unprotected(chain, &chunk->chain_node);
}