Sunday, December 30, 2012

gdb commands

bt - backtrace
frame number - select a particular stack frame
list - see the code
print var_name - print variable's value

Creating core dump

ulimit -c unlimited
To invesigate the core:
dbg program core_file

Monday, December 3, 2012

Using mintty with mingw

If you don't like default mingw console, you can use mintty instead.

mingw-get install mintty
Create link
C:\MinGW\msys\1.0\bin\mintty.exe /bin/env CHERE_INVOKING=1 /bin/bash -l
Source.