Thursday, May 07, 2009

Debugging with gdb

If I want to debug some program I miss some handfull guide. Here is one:

Commands 
gdb name-of-executable 
gdb -e name-of-executable -c name-of-core-file 
gdb name-of-executable -pid process-id 
(Use ps -auxw to list process id's.) 

Resources 

Software 
cgdb - curses based gdb ide 
ddd - gdb ide for x window



Other Linux Debugging techniques


Valgrind usage

valgrind --leak-check=full \
         --show-leak-kinds=all \
         --track-origins=yes \
         --verbose \
         --log-file=valgrind-out.txt \
         ./executable exampleParam1




GCC compile/link options:
-fsanitize=address
XORs with:
-fsanitize=thread




Oracle OFFSET LIMIT


ROWNUM psuedocolumn or the ROW_NUMBER()

A:



 

No comments: