User forums > Using Code::Blocks
Viewing Linked Lists in C::B
(1/1)
bamf226:
I've tried everything I can think of to get a linked list to appear in the Watches window. It's easy enough to dereference head and see the contents of the node, but I can't seem to get past the head node except by hardcoding all the next pointers. It gets to be pretty tiresome to type head->next->next->next to look at the fourth node in the list. Is there any easier way that I can get the node contents to appear in the Watches window without a string of dereferenced next pointers?
ollydbg:
You need to write your own GDB python pretty printers, see: STLSupport - GDB Wiki - Free software! and Debugging with GDB : Writing a Pretty - Printer
bamf226:
That is well outside my area of expertise. Is there a plug-in that someone else has already written that will do that?
oBFusCATed:
It depends on the library. If it is your own library then no - you have to do it yourself.
BTW: Never use linked lists they are sloooow:)
Navigation
[0] Message Index
Go to full version