The Archives

  • 23.Jul.12
    gdb & nice Vim macro shell | fernape | (0)
    Imagine we have a simple program like the one below: #include <stdio.h> int main(int argc, char **argv) { char *str = "Hello guys, this is just a bit large string to test a nice Vim macro"; printf("%s\n", str); return (0); } This program is pretty simple, but it will serve its purpose. Imagine we have to inspect the content of str or for the same matter, any other memory address. We want to do it while we are inside a gdb session or while we are analyzing a core file. The simplest case is to do ...