Hot answers tagged


I assume you are using *nix based systems since you mentioned gdb. If you just want to print the stack/registers when you hit a break point, you can use command to set up some print statements. See here. Installing pwndbg makes it a lot less exhausting as it prints out the stack and registers every time you step, with labels on the stack identifying rbp and ...


Registers ss, cs, ds, es, gs, fs are special. They are called segment registers and contain not addresses but selectors. A selector is used by the CPU as a reference to a segment - area of memory with a specific base (start address), limit (end address) and permissions. Selectors and segments are set up by the OS and in theory there may be many different ...


Borland's Turbo Debugger also has a text-window-based UI, with the stack in its own window and showing which values in which locations. It doesn't tell you what those values represent, but at least it's always visible.

Only top voted, non community-wiki answers of a minimum length are eligible