Environ 231 000 résultats
Ouvrir les liens dans un nouvel onglet
  1. How can I examine the stack frame with GDB? - Stack Overflow

    30 août 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 stack? Can this …

  2. How can one see content of stack with GDB? - Stack Overflow

    I am new to GDB, so I have some questions: How can I look at content of the stack? Example: to see content of register, I type info registers. For the stack, what should it be? How can I see the …

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

    12 oct. 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, …

  4. How to print a stack trace whenever a certain function is called

    Is there any way to dump the call stack in a running process in C or C++ every time a certain function is called? You can use a macro function instead of return statement in the specific …

  5. How do I get the backtrace for all the threads in GDB?

    3 mai 2021 · When debugging with several threads, it is also useful to switch to a particular thread number and get the backtrace for that thread only. From the GNU GDB threads documentation …

  6. How do I get an entire stack trace in gdb in one shot?

    27 nov. 2010 · I don't know if the full backtrace can be given but you can give a numeric argument to 'bt' to get more frames: (gdb) bt 10 #0 x () at test.c:4 #1 0x080483bf in x () at test.c:4 #2 …

  7. gcc - gdb: how to easily show/print the stack - Stack Overflow

    22 août 2020 · Is there a simple way to print the "stack" in gdb? What I mean by this is let's say the base pointer address is: rbp 0x00007fffffffe330 And I'm writing values like so: …

  8. Navigate using function call stack in gdb

    19 juil. 2016 · In Visual Studio, if you click on an entry in the call stack, that opens editor and shows you the source code for that function. Is something similar possible in gdb? I use tui …

  9. How to automatically generate a stacktrace when my program …

    Run next command to print backtrace to stdout: gdb -batch -ex "backtrace" ./your_program_exe ./core This will print proper readable backtrace of your program in human readable way (with …

  10. c++ - Generating a stack trace on exit in gdb - Stack Overflow

    11 févr. 2014 · Your call stack simply means no one called exit() until 0x0411f19e in main(). If you question the curiously-omitted "strange output" perhaps you should interactively debug the …