About 263,000 results
Open links in new tab
  1. How to look at the stack with gdb - Julia Evans

    May 17, 2021 · return a pointer from a function to a string on the stack and see what goes wrong. Why is it bad to return a pointer to a string on the stack? try causing a stack overflow in C and …

  2. Debugging with GDB - Examining the Stack

    Print a list of all the exception handlers that are active in the current stack frame at the current point of execution. To see other exception handlers, visit the associated frame (using the up, …

  3. How to Print the Current Stack Pointer Value in C on Linux ...

    Conclusion Printing the stack pointer in C on Linux (Debian/Ubuntu) is a powerful low-level debugging technique. By using inline assembly (for x86_64) or GDB, you can inspect %rsp to …

  4. Print Settings (Debugging with GDB) - sourceware.org

    GDB prints memory addresses showing the location of stack traces, structure values, pointer values, breakpoints, and so forth, even when it also displays the contents of those addresses. …

  5. How can I inspect stack frame in lldb or gdb? - Stack Overflow

    Oct 12, 2023 · The output here is very like info args, but GDB is just printing the stack locals. You can always print particular locals, arguments, or globals like print var -- assuming of course, …

  6. Best Ways to Invoke GDB from Inside a Program to Print Stack ...

    Nov 23, 2025 · - Logging stack traces for post-mortem analysis in production. - Automating debugging workflows in CI/CD pipelines. This blog explores the most effective ways to invoke …

  7. GDB - Call Stack — Debugging documentation

    When debugging using GDB, we must be in a specific stack frame to access particular local variables of the code. We will use the simple C program call_stack_explanation.c to explore …

  8. Using GDB to Print and Analyze the Stack Trace from Crash ...

    Dec 27, 2023 · We covered the full workflow – enabling core dumps, intentionally crashing programs, using GDB to print stack traces and pinpoint crash locations in code, plus …