Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sesiuni:memory:3 [2013/07/10 18:14]
acopot [Tasks]
sesiuni:memory:3 [2013/07/11 12:00]
acopot [Tasks]
Line 47: Line 47:
       * <​code>​       * <​code>​
        gdb corrupt        gdb corrupt
-       ​breakpoint ​main.c:27 +       ​breakpoint 27 
-       run -1 7+       run -1 70
       </​code>​       </​code>​
     * GDB commands for displaying memory contents:     * GDB commands for displaying memory contents:
Line 54: Line 54:
         * print a byte in hex from that address         * print a byte in hex from that address
         * use '​w'​ to display a word (int)         * use '​w'​ to display a word (int)
-      * ''​x/​wx ptr 1''​ +      * ''​x/​wx ptr 1''​ 
-        * display a word at (ptr sizeof(*ptr))+        * display a word at (ptr sizeof(*ptr))
     * You should see something like:     * You should see something like:
       * <​code>​ 0x804a004: ​      ​0x00000031</​code>​       * <​code>​ 0x804a004: ​      ​0x00000031</​code>​
sesiuni/memory/3.txt · Last modified: 2013/07/11 12:00 by acopot