Download Game! Currently 75 players and visitors. Last logged in:GgrSolvikTuneDarol

Beow's Blog >> 68872

Back to blogs index
Posted: 30 Sep 2022 19:00 [ permalink ]
I know how to run and use the gdb (GNU Debugger). It is easy. First one should
compile the program with the "-g" flag/switch (GNU debug flag/switch), for
example "gcc -g -o program program.c". After that one can start gdb with the
program like "gdb program_binary_name", and when in GDB, one must type "layout
src". Then "b main" ("b" is for "break"/"breakpoint"). After that "r" for
"run". Then "n" or "u" ("n" is for "next" and "u" is for "until"). The
keycombo Ctrl+L rewrites (clears and rewrites) the screen. One can move in the
source code with arrow up and arrow down keys.