Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gdb ./test_1
- GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7
- Copyright (C) 2014 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law. Type "show copying"
- and "show warranty" for details.
- This GDB was configured as "x86_64-linux-gnu".
- Type "show configuration" for configuration details.
- For bug reporting instructions, please see:
- <http://www.gnu.org/software/gdb/bugs/>.
- Find the GDB manual and other documentation resources online at:
- <http://www.gnu.org/software/gdb/documentation/>.
- ---Type <return> to continue, or q <return> to quit---
- For help, type "help".
- Type "apropos word" to search for commands related to "word"...
- Reading symbols from ./test_1...done.
- (gdb) b main
- Breakpoint 1 at 0x402aad: file facedetect.cpp, line 30.
- (gdb) b detectAndDisplay
- Breakpoint 2 at 0x402cab: file facedetect.cpp, line 64.
- (gdb) s
- The program is not being run.
- (gdb) r
- Starting program: /home/goddard/Projects/example/faceEyeDetect/test_1
- [Thread debugging using libthread_db enabled]
- Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
- [New Thread 0x7fffe5dff700 (LWP 3568)]
- Breakpoint 1, main () at facedetect.cpp:30
- 30 VideoCapture capture;
- (gdb) s
- 31 Mat frame;
- (gdb) s
- cv::Mat::Mat (this=0x7fffffffda40) at /usr/local/include/opencv2/core/mat.inl.hpp:296
- 296 datalimit(0), allocator(0), u(0), size(&rows)
- (gdb) s
- cv::MatSize::MatSize (this=0x7fffffffda80, _p=0x7fffffffda48) at /usr/local/include/opencv2/core/mat.inl.hpp:1067
- 1067 : p(_p) {}
- (gdb) s
- cv::MatStep::MatStep (this=0x7fffffffda88) at /usr/local/include/opencv2/core/mat.inl.hpp:1123
- 1123 p = buf; p[0] = p[1] = 0;
- (gdb) s
- 1124 }
- (gdb) s
- cv::Mat::Mat (this=0x7fffffffda40) at /usr/local/include/opencv2/core/mat.inl.hpp:297
- 297 {}
- (gdb) s
- main () at facedetect.cpp:34
- 34 if( !face_cascade.load( face_cascade_name ) ){ printf("--(!)Error loading face cascade\n"); return -1; };
- (gdb) s
- 35 if( !eyes_cascade.load( eyes_cascade_name ) ){ printf("--(!)Error loading eyes cascade\n"); return -1; };
- (gdb) s
- 38 capture.open( -1 );
- (gdb) s
- 39 if ( ! capture.isOpened() ) { printf("--(!)Error opening video capture\n"); return -1; }
- (gdb) s
- 41 while ( capture.read(frame) )
- (gdb) s
- cv::_OutputArray::_OutputArray (this=0x7fffffffdaa0, m=...) at /usr/local/include/opencv2/core/mat.inl.hpp:121
- 121 inline _OutputArray::_OutputArray(Mat& m) { init(MAT+ACCESS_WRITE, &m); }
- (gdb) s
- cv::_InputArray::_InputArray (this=0x7fffffffdaa0) at /usr/local/include/opencv2/core/mat.inl.hpp:63
- 63 inline _InputArray::_InputArray() { init(NONE, 0); }
- (gdb) s
- cv::Size_<int>::Size_ (this=0x7fffffffdab8) at /usr/local/include/opencv2/core/types.hpp:1281
- 1281 : width(0), height(0) {}
- (gdb) s
- cv::_InputArray::init (this=0x7fffffffdaa0, _flags=0, _obj=0x0) at /usr/local/include/opencv2/core/mat.inl.hpp:56
- 56 { flags = _flags; obj = (void*)_obj; }
- (gdb) s
- cv::_InputArray::init (this=0x7fffffffdaa0, _flags=33619968, _obj=0x7fffffffda40) at /usr/local/include/opencv2/core/mat.inl.hpp:56
- 56 { flags = _flags; obj = (void*)_obj; }
- (gdb) s
- cv::_OutputArray::~_OutputArray (this=0x7fffffffdaa0, __in_chrg=<optimized out>) at /usr/local/include/opencv2/core/mat.hpp:158
- 158 class CV_EXPORTS _OutputArray : public _InputArray
- (gdb) s
- cv::_InputArray::~_InputArray (this=0x7fffffffdaa0, __in_chrg=<optimized out>) at /usr/local/include/opencv2/core/mat.inl.hpp:109
- 109 inline _InputArray::~_InputArray() {}
- (gdb) s
- main () at facedetect.cpp:43
- 43 if( frame.empty() )
- (gdb) s
- cv::Mat::empty (this=0x7fffffffda40) at /usr/local/include/opencv2/core/mat.inl.hpp:718
- 718 return data == 0 || total() == 0;
- (gdb) s
- cv::Mat::total (this=0x7fffffffda40) at /usr/local/include/opencv2/core/mat.inl.hpp:724
- 724 if( dims <= 2 )
- (gdb) s
- 725 return (size_t)rows * cols;
- (gdb) s
- 730 }
- (gdb) s
- cv::Mat::empty (this=0x7fffffffda40) at /usr/local/include/opencv2/core/mat.inl.hpp:719
- 719 }
- (gdb) s
- main () at facedetect.cpp:50
- 50 detectAndDisplay( frame );
- (gdb) s
- cv::Mat::Mat (this=0x7fffffffdaa0, m=...) at /usr/local/include/opencv2/core/mat.inl.hpp:354
- 354 u(m.u), size(&rows)
- (gdb) s
- cv::MatSize::MatSize (this=0x7fffffffdae0, _p=0x7fffffffdaa8) at /usr/local/include/opencv2/core/mat.inl.hpp:1067
- 1067 : p(_p) {}
- (gdb) s
- cv::MatStep::MatStep (this=0x7fffffffdae8) at /usr/local/include/opencv2/core/mat.inl.hpp:1123
- 1123 p = buf; p[0] = p[1] = 0;
- (gdb) s
- 1124 }
- (gdb) s
- cv::Mat::Mat (this=0x7fffffffdaa0, m=...) at /usr/local/include/opencv2/core/mat.inl.hpp:356
- 356 if( u )
- (gdb) s
- 357 CV_XADD(&u->refcount, 1);
- (gdb) s
- 358 if( m.dims <= 2 )
- (gdb) s
- 360 step[0] = m.step[0]; step[1] = m.step[1];
- (gdb) s
- cv::MatStep::operator[] (this=0x7fffffffdae8, i=0) at /usr/local/include/opencv2/core/mat.inl.hpp:1141
- 1141 return p[i];
- (gdb) s
- 1142 }
- (gdb) s
- cv::MatStep::operator[] (this=0x7fffffffda88, i=0) at /usr/local/include/opencv2/core/mat.inl.hpp:1135
- 1135 return p[i];
- (gdb) s
- 1136 }
- (gdb) s
- cv::MatStep::operator[] (this=0x7fffffffdae8, i=1) at /usr/local/include/opencv2/core/mat.inl.hpp:1141
- 1141 return p[i];
- (gdb) s
- 1142 }
- (gdb) s
- cv::MatStep::operator[] (this=0x7fffffffda88, i=1) at /usr/local/include/opencv2/core/mat.inl.hpp:1135
- 1135 return p[i];
- (gdb) s
- 1136 }
- (gdb) s
- cv::Mat::Mat (this=0x7fffffffdaa0, m=...) at /usr/local/include/opencv2/core/mat.inl.hpp:367
- 367 }
- (gdb) s
- Breakpoint 2, detectAndDisplay (frame=...) at facedetect.cpp:64
- 64 std::vector<Rect> faces;
- (gdb) s
- std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >::vector (this=0x7fffffffd8a0) at /usr/include/c++/4.8/bits/stl_vector.h:249
- 249 : _Base() { }
- (gdb) s
- std::_Vector_base<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >::_Vector_base (this=0x7fffffffd8a0) at /usr/include/c++/4.8/bits/stl_vector.h:125
- 125 : _M_impl() { }
- (gdb) s
- std::_Vector_base<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >::_Vector_impl::_Vector_impl (this=0x7fffffffd8a0)
- at /usr/include/c++/4.8/bits/stl_vector.h:87
- 87 : _Tp_alloc_type(), _M_start(0), _M_finish(0), _M_end_of_storage(0)
- (gdb) s
- std::allocator<cv::Rect_<int> >::allocator (this=0x7fffffffd8a0) at /usr/include/c++/4.8/bits/allocator.h:113
- 113 allocator() throw() { }
- (gdb) s
- __gnu_cxx::new_allocator<cv::Rect_<int> >::new_allocator (this=0x7fffffffd8a0) at /usr/include/c++/4.8/ext/new_allocator.h:79
- 79 new_allocator() _GLIBCXX_USE_NOEXCEPT { }
- (gdb) s
- std::_Vector_base<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >::_Vector_impl::_Vector_impl (this=0x7fffffffd8a0)
- at /usr/include/c++/4.8/bits/stl_vector.h:88
- 88 { }
- (gdb) s
- detectAndDisplay (frame=...) at facedetect.cpp:65
- 65 Mat frame_gray;
- (gdb) s
- cv::Mat::Mat (this=0x7fffffffd920) at /usr/local/include/opencv2/core/mat.inl.hpp:296
- 296 datalimit(0), allocator(0), u(0), size(&rows)
- (gdb) s
- cv::MatSize::MatSize (this=0x7fffffffd960, _p=0x7fffffffd928) at /usr/local/include/opencv2/core/mat.inl.hpp:1067
- 1067 : p(_p) {}
- (gdb) s
- cv::MatStep::MatStep (this=0x7fffffffd968) at /usr/local/include/opencv2/core/mat.inl.hpp:1123
- 1123 p = buf; p[0] = p[1] = 0;
- (gdb) s
- 1124 }
- (gdb) s
- cv::Mat::Mat (this=0x7fffffffd920) at /usr/local/include/opencv2/core/mat.inl.hpp:297
- 297 {}
- (gdb) s
- detectAndDisplay (frame=...) at facedetect.cpp:67
- 67 cvtColor( frame, frame_gray, COLOR_BGR2GRAY );
- (gdb) s
- cv::_OutputArray::_OutputArray (this=0x7fffffffd980, m=...) at /usr/local/include/opencv2/core/mat.inl.hpp:121
- 121 inline _OutputArray::_OutputArray(Mat& m) { init(MAT+ACCESS_WRITE, &m); }
- (gdb) s
- cv::_InputArray::_InputArray (this=0x7fffffffd980) at /usr/local/include/opencv2/core/mat.inl.hpp:63
- 63 inline _InputArray::_InputArray() { init(NONE, 0); }
- (gdb) s
- cv::Size_<int>::Size_ (this=0x7fffffffd998) at /usr/local/include/opencv2/core/types.hpp:1281
- 1281 : width(0), height(0) {}
- (gdb) s
- cv::_InputArray::init (this=0x7fffffffd980, _flags=0, _obj=0x0) at /usr/local/include/opencv2/core/mat.inl.hpp:56
- 56 { flags = _flags; obj = (void*)_obj; }
- (gdb) s
- cv::_InputArray::init (this=0x7fffffffd980, _flags=33619968, _obj=0x7fffffffd920) at /usr/local/include/opencv2/core/mat.inl.hpp:56
- 56 { flags = _flags; obj = (void*)_obj; }
- (gdb) s
- cv::_InputArray::_InputArray (this=0x7fffffffd900, m=...) at /usr/local/include/opencv2/core/mat.inl.hpp:65
- 65 inline _InputArray::_InputArray(const Mat& m) { init(MAT+ACCESS_READ, &m); }
- (gdb) s
- cv::Size_<int>::Size_ (this=0x7fffffffd918) at /usr/local/include/opencv2/core/types.hpp:1281
- 1281 : width(0), height(0) {}
- (gdb) s
- cv::_InputArray::init (this=0x7fffffffd900, _flags=16842752, _obj=0x7fffffffdaa0) at /usr/local/include/opencv2/core/mat.inl.hpp:56
- 56 { flags = _flags; obj = (void*)_obj; }
- (gdb) s
- cv::_InputArray::~_InputArray (this=0x7fffffffd900, __in_chrg=<optimized out>) at /usr/local/include/opencv2/core/mat.inl.hpp:109
- 109 inline _InputArray::~_InputArray() {}
- (gdb) s
- cv::_OutputArray::~_OutputArray (this=0x7fffffffd980, __in_chrg=<optimized out>) at /usr/local/include/opencv2/core/mat.hpp:158
- 158 class CV_EXPORTS _OutputArray : public _InputArray
- (gdb) s
- cv::_InputArray::~_InputArray (this=0x7fffffffd980, __in_chrg=<optimized out>) at /usr/local/include/opencv2/core/mat.inl.hpp:109
- 109 inline _InputArray::~_InputArray() {}
- (gdb) s
- detectAndDisplay (frame=...) at facedetect.cpp:68
- 68 equalizeHist( frame_gray, frame_gray );
- (gdb) s
- cv::_OutputArray::_OutputArray (this=0x7fffffffd980, m=...) at /usr/local/include/opencv2/core/mat.inl.hpp:121
- 121 inline _OutputArray::_OutputArray(Mat& m) { init(MAT+ACCESS_WRITE, &m); }
- (gdb) s
- cv::_InputArray::_InputArray (this=0x7fffffffd980) at /usr/local/include/opencv2/core/mat.inl.hpp:63
- 63 inline _InputArray::_InputArray() { init(NONE, 0); }
- (gdb) s
- cv::Size_<int>::Size_ (this=0x7fffffffd998) at /usr/local/include/opencv2/core/types.hpp:1281
- 1281 : width(0), height(0) {}
- (gdb) s
- cv::_InputArray::init (this=0x7fffffffd980, _flags=0, _obj=0x0) at /usr/local/include/opencv2/core/mat.inl.hpp:56
- 56 { flags = _flags; obj = (void*)_obj; }
- (gdb) s
- cv::_InputArray::init (this=0x7fffffffd980, _flags=33619968, _obj=0x7fffffffd920) at /usr/local/include/opencv2/core/mat.inl.hpp:56
- 56 { flags = _flags; obj = (void*)_obj; }
- (gdb) s
- cv::_InputArray::_InputArray (this=0x7fffffffd900, m=...) at /usr/local/include/opencv2/core/mat.inl.hpp:65
- 65 inline _InputArray::_InputArray(const Mat& m) { init(MAT+ACCESS_READ, &m); }
- (gdb) s
- cv::Size_<int>::Size_ (this=0x7fffffffd918) at /usr/local/include/opencv2/core/types.hpp:1281
- 1281 : width(0), height(0) {}
- (gdb) s
- cv::_InputArray::init (this=0x7fffffffd900, _flags=16842752, _obj=0x7fffffffd920) at /usr/local/include/opencv2/core/mat.inl.hpp:56
- 56 { flags = _flags; obj = (void*)_obj; }
- (gdb) s
- cv::_InputArray::~_InputArray (this=0x7fffffffd900, __in_chrg=<optimized out>) at /usr/local/include/opencv2/core/mat.inl.hpp:109
- 109 inline _InputArray::~_InputArray() {}
- (gdb) s
- cv::_OutputArray::~_OutputArray (this=0x7fffffffd980, __in_chrg=<optimized out>) at /usr/local/include/opencv2/core/mat.hpp:158
- 158 class CV_EXPORTS _OutputArray : public _InputArray
- (gdb) s
- cv::_InputArray::~_InputArray (this=0x7fffffffd980, __in_chrg=<optimized out>) at /usr/local/include/opencv2/core/mat.inl.hpp:109
- 109 inline _InputArray::~_InputArray() {}
- (gdb) s
- detectAndDisplay (frame=...) at facedetect.cpp:71
- 71 face_cascade.detectMultiScale( frame_gray, faces, 1.1, 2, 0, Size(80, 80) );
- (gdb) s
- cv::Size_<int>::Size_ (this=0x7fffffffd900) at /usr/local/include/opencv2/core/types.hpp:1281
- 1281 : width(0), height(0) {}
- (gdb) s
- cv::Size_<int>::Size_ (this=0x7fffffffd8e0, _width=80, _height=80) at /usr/local/include/opencv2/core/types.hpp:1285
- 1285 : width(_width), height(_height) {}
- (gdb) s
- cv::_InputArray::_InputArray (this=0x7fffffffd980, m=...) at /usr/local/include/opencv2/core/mat.inl.hpp:65
- 65 inline _InputArray::_InputArray(const Mat& m) { init(MAT+ACCESS_READ, &m); }
- (gdb) s
- cv::Size_<int>::Size_ (this=0x7fffffffd998) at /usr/local/include/opencv2/core/types.hpp:1281
- 1281 : width(0), height(0) {}
- (gdb) s
- cv::_InputArray::init (this=0x7fffffffd980, _flags=16842752, _obj=0x7fffffffd920) at /usr/local/include/opencv2/core/mat.inl.hpp:56
- 56 { flags = _flags; obj = (void*)_obj; }
- (gdb) s
- [New Thread 0x7ffff7e82700 (LWP 3570)]
- cv::_InputArray::~_InputArray (this=0x7fffffffd980, __in_chrg=<optimized out>) at /usr/local/include/opencv2/core/mat.inl.hpp:109
- 109 inline _InputArray::~_InputArray() {}
- (gdb) s
- detectAndDisplay (frame=...) at facedetect.cpp:73
- 73 for( size_t i = 0; i < faces.size(); i++ )
- (gdb) s
- std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >::size (this=0x7fffffffd8a0) at /usr/include/c++/4.8/bits/stl_vector.h:646
- 646 { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); }
- (gdb) s
- detectAndDisplay (frame=...) at facedetect.cpp:96
- 96 imshow( window_name, frame );
- (gdb) s
- cv::_InputArray::_InputArray (this=0x7fffffffd980, m=...) at /usr/local/include/opencv2/core/mat.inl.hpp:65
- 65 inline _InputArray::_InputArray(const Mat& m) { init(MAT+ACCESS_READ, &m); }
- (gdb) s
- cv::Size_<int>::Size_ (this=0x7fffffffd998) at /usr/local/include/opencv2/core/types.hpp:1281
- 1281 : width(0), height(0) {}
- (gdb) s
- cv::_InputArray::init (this=0x7fffffffd980, _flags=16842752, _obj=0x7fffffffdaa0) at /usr/local/include/opencv2/core/mat.inl.hpp:56
- 56 { flags = _flags; obj = (void*)_obj; }
- (gdb) s
- s[New Thread 0x7fffd48aa700 (LWP 3571)]
- [New Thread 0x7fffcc447700 (LWP 3572)]
- [New Thread 0x7fffcba34700 (LWP 3573)]
- [New Thread 0x7fffc3003700 (LWP 3577)]
- [New Thread 0x7fffc239d700 (LWP 3578)]
- [New Thread 0x7fffc1b9c700 (LWP 3579)]
- init done
- opengl support available
- cv::_InputArray::~_InputArray (this=0x7fffffffd980, __in_chrg=<optimized out>) at /usr/local/include/opencv2/core/mat.inl.hpp:109
- 109 inline _InputArray::~_InputArray() {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement