Computer
Systems

Fall 2010
course
navigation

sep 30

Assignment for next week is posted.
CMS slides :
Continue looking in class at compiled small.c with gdb: find the strings and system calls.
here's a snip to talk about : $ gdb small (gdb) break print_string (gdb) run (gdb) info stack /* i s */ (gdb) info frame /* i f */ (gdb) info registers /* i r */ (gdb) x/s $eax /* "The first string. I think." */ (gdb) disass print_string (gdb) x/s $0xd4+$ebx /* "string: '%s'\n" */
http://cs.marlboro.edu/ courses/ fall2010/systems/ notes/ sep_30
last modified Thursday September 30 2010 4:12 am EDT

attachments [paper clip]

     name last modified size
[COD]small.c Sep 30 2010 3:06 am 648B