diff --git a/notes/README.asm_file b/notes/README.asm_function similarity index 99% rename from notes/README.asm_file rename to notes/README.asm_function index ddcaa70..33eea01 100644 --- a/notes/README.asm_file +++ b/notes/README.asm_function @@ -1,5 +1,6 @@ -Disassemble the entire file containing $pc +Disassemble the entire function containing $pc +"-a" requires debug information to find which function contains $pc. -data-disassemble -a $pc -- 2 diff --git a/notes/README.asm_hello b/notes/README.asm_hello index b390a7c..e89eddd 100644 --- a/notes/README.asm_hello +++ b/notes/README.asm_hello @@ -1,4 +1,5 @@ # Dissembly without and with source lines. Code from .asm do not have source lines. Just assembly. +# "-a" requires debug information to find which function contains $pc. -data-disassemble -a $pc -- 2 diff --git a/tests/helloasm/README.asm b/tests/helloasm/README.asm index 60d7c15..8a10c19 100644 --- a/tests/helloasm/README.asm +++ b/tests/helloasm/README.asm @@ -20,4 +20,8 @@ debug dialog and start command line. Typical _start address is: 0x8048080 +In gdb, to disassemble a range of memmory. 20 bytes before an +address to 20 bytes after. + + (gdb) disassemble 0x08048080-20, +20