About 158,000 results
Open links in new tab
  1. Debugging with GDB - Examining the Stack

    On the SPARC architecture, frame needs two addresses to select an arbitrary frame: a frame pointer and a stack pointer. On the MIPS and Alpha architecture, it needs two addresses: a …

  2. How can I examine the stack frame with GDB? - Stack Overflow

    Aug 30, 2013 · Right now I've been using GDB to disassemble a binary file and check out different registers and whatnot. Is there an easy command to examine everything on the …

  3. 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 …

  4. GDB - Call Stack — Debugging documentation - UNSW Sites

    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 …

  5. Stack (Debugging with GDB) - sourceware.org

    Stack (Debugging with GDB)One of the stack frames is selected by GDB and many GDB commands refer implicitly to the selected frame. In particular, whenever you ask GDB for the …

  6. Understanding stack operations in assembly with GDB

    Jul 12, 2024 · In,conclusion, mastering stack operations in assembly language is crucial for understanding how data is managed and functions are executed at the lowest level of computing.

  7. Debugging with gdb - Examining the Stack - Apple Developer

    Usually this address is kept in a register called the frame pointer register (see section Registers) while execution is going on in that frame. GDB assigns numbers to all existing stack frames, …

  8. CSE 374, Lecture 11: gdb - courses.cs.washington.edu

    When you run GDB you can quickly figure out the cause of a segfault - was it a stack overflow? array overflow? null pointer dereference? Print out values of pointers when you have a …