I love debugging..
Posted: Fri Apr 27, 2007 2:31 pm
I just love debugging, and especially the art of fitting as much debugging info in easily readable format on screen, as possible...
This time my OS console looked like below, when I finally found 'da bug in my new blockcache code: I forgot to update cache->lru.last when removing block from a lru-list. If somebody cares, the lru-list is currently singly-linked list, but with pointers to first and last element to make it easier to add entries at the end.. should make it double linked list I guess.
Anyway, the beauty of debugging:
edit: to be absolutely clear, that's a shot from the first successful test run after testing the code, but you get the point
This time my OS console looked like below, when I finally found 'da bug in my new blockcache code: I forgot to update cache->lru.last when removing block from a lru-list. If somebody cares, the lru-list is currently singly-linked list, but with pointers to first and last element to make it easier to add entries at the end.. should make it double linked list I guess.
Anyway, the beauty of debugging:
edit: to be absolutely clear, that's a shot from the first successful test run after testing the code, but you get the point