Elektrine lite

← Feed

@jschauma@mstdn.social

2026-10-12 14:46 UTC

Advanced Programming in the #UNIX Environment Week 5: Debugging Your Code Let's find a better approach to debug your code than sprinkling `printf("here")` statements all over our code. Use gdb(1) to catch segfaults, inspect variables, call functions, set breakpoints, step through the program, all while the program is running. https://youtu.be/61YwbTQy2G0 https://youtu.be/Miw0XLzHCws https://youtu.be/fOp4Q4mnTD4 https://youtu.be/hgcj7iAxhhU

Replies (1)

  • @jschauma@mstdn.social 2026-10-13 13:46

    Advanced Programming in the #UNIX Environment Week 5: Using gdb(1) to understand pointers Now that we know how to use the debugger, let's examine memory locations in a running program and use that to better understand how pointers and arrays work in the C programming language as well as how a buffer overflow manifests. https://youtu.be/hr-rn0yUhAw

    Open ##5061744