2010-01-19

Useful gdb commands

  1. gdb main //start debug
  2. run //run target
  3. backtrace //show the calling stack at the point of fault
  4. x 0xbff972e0 // examine the value in memory
  5. break 52 or break LinkedList::remove //set break
  6. condition 1 item_to_remove==1 //set conditional break
  7. s //step
  8. c //continue
  9. quit //quit
To make qmake generated debug info, a line need to add into *.pro file

>CONFIG = qt opengl debug

No comments:

Post a Comment