M
Michael Jasn
Hi all,
I am trying to print the contents of a std::list<Point> in gdb
(actually ddd). I have this function
void BezierCurveEvaluator::evaluateCurve(const std::vector<Point>&
ptvCtrlPts)
When I break into the function and say,
(gdb) print ptvCtrlPts
I get:
$1 = (vector<Point,std::allocator<Point> > &) @0x80b4f78:
{<_Vector_base<Point,std::allocator<Point> >> =
{<_Vector_alloc_base<Point,std::allocator<Point>,true>> = {_M_start =
0x80b67d8, _M_finish = 0x80b6800, _M_end_of_storage = 0x80b6818}, <No
data fields>}, <No data fields>}
which does not look very friendly
Are there some tricks to force gdb to print the contents of a list, or
for that matter, any other STL container?
Thanks gurus.
I am trying to print the contents of a std::list<Point> in gdb
(actually ddd). I have this function
void BezierCurveEvaluator::evaluateCurve(const std::vector<Point>&
ptvCtrlPts)
When I break into the function and say,
(gdb) print ptvCtrlPts
I get:
$1 = (vector<Point,std::allocator<Point> > &) @0x80b4f78:
{<_Vector_base<Point,std::allocator<Point> >> =
{<_Vector_alloc_base<Point,std::allocator<Point>,true>> = {_M_start =
0x80b67d8, _M_finish = 0x80b6800, _M_end_of_storage = 0x80b6818}, <No
data fields>}, <No data fields>}
which does not look very friendly
Are there some tricks to force gdb to print the contents of a list, or
for that matter, any other STL container?
Thanks gurus.