some small fixes

This commit is contained in:
Mari Wahl 2014-10-07 18:59:28 -04:00
parent 117958bd9c
commit a5a6601a45
3 changed files with 239 additions and 3 deletions

View file

@ -12,6 +12,20 @@ $ gcc -ggdb -o <filename> <filename>.c
```
Starting with some commands:
```
$ gdb <program name> -x <command file>
```
For example:
```
$ cat command.txt
```
set disassembly-flavor intel
disas main
```
#### objdump
Display information from object files:
@ -23,3 +37,16 @@ fully linked executable
$ objdump -d <bin>
```
#### hexdump & xxd
For canonical hex & ASCII view:
```
$hexdump -C
```
#### xxd
Make a hexdump or do the reverse:
```
xxd hello > hello.dump
xxd -r hello.dump > hello
```