> I downloaded this one
> I applied it with this gdb invocation
> Am I doing something wrong maybe?
¿what results did you get?
stl-views only define functions to print containers.
Also
1 2
# This file should be "included" in .gdbinit as following:
# source stl-views.gdb or just paste it into your .gdbinit file
This messaged is shown when I execute 'print l.front()' in gdb.
I expected gdb would print 2 (the list's front) but instead it shows the error message. I have this problem with other STL containers. I just give this simple code as an example.
I tried your solution but still get the same message.
I have been surfing the net for a long time to solve this problem but found nothing
It doesn't provide any support for evaluating l.front() in the debugger.
It is a crude and primitive debugging environment as far as C++ (particularly templates) is concerned; if the code is portable, consider using a Microsoft debugger.