1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
|
-data-disassemble -s $pc -e "$pc + 96" -- 0
^done,asm_insns=[
{address="0x000000000040093c",func-name="main()",offset="362",inst="mov $0x400aa9,%edi"},
{address="0x0000000000400941",func-name="main()",offset="367",inst="call 0x400680 <puts@plt>"},
{address="0x0000000000400946",func-name="main()",offset="372",inst="mov -0x30(%rbp),%rax"},
{address="0x000000000040094a",func-name="main()",offset="376",inst="mov %rax,%rdi"},
{address="0x000000000040094d",func-name="main()",offset="379",inst="call 0x400650 <free@plt>"},
{address="0x0000000000400952",func-name="main()",offset="384",inst="mov -0x38(%rbp),%rax"},
{address="0x0000000000400956",func-name="main()",offset="388",inst="mov %rax,%rdi"},
{address="0x0000000000400959",func-name="main()",offset="391",inst="call 0x400650 <free@plt>"},
{address="0x000000000040095e",func-name="main()",offset="396",inst="mov -0x40(%rbp),%rax"},
{address="0x0000000000400962",func-name="main()",offset="400",inst="mov %rax,%rdi"},
{address="0x0000000000400965",func-name="main()",offset="403",inst="call 0x400650 <free@plt>"},
{address="0x000000000040096a",func-name="main()",offset="408",inst="mov -0x60(%rbp),%rax"},
{address="0x000000000040096e",func-name="main()",offset="412",inst="mov %rax,%rdi"},
{address="0x0000000000400971",func-name="main()",offset="415",inst="call 0x400650 <free@plt>"},
{address="0x0000000000400976",func-name="main()",offset="420",inst="mov -0x68(%rbp),%rax"},
{address="0x000000000040097a",func-name="main()",offset="424",inst="mov %rax,%rdi"},
{address="0x000000000040097d",func-name="main()",offset="427",inst="call 0x400650 <free@plt>"},
{address="0x0000000000400982",func-name="main()",offset="432",inst="mov $0x0,%eax"},
{address="0x0000000000400987",func-name="main()",offset="437",inst="add $0x68,%rsp"},
{address="0x000000000040098b",func-name="main()",offset="441",inst="pop %rbx"},
{address="0x000000000040098c",func-name="main()",offset="442",inst="pop %rbp"},
{address="0x000000000040098d",func-name="main()",offset="443",inst="ret "},
{address="0x000000000040098e",func-name="__static_initialization_and_destruction_0(int, int)",offset="0",inst="push %rbp"},
{address="0x000000000040098f",func-name="__static_initialization_and_destruction_0(int, int)",offset="1",inst="mov %rsp,%rbp"},
{address="0x0000000000400992",func-name="__static_initialization_and_destruction_0(int, int)",offset="4",inst="sub $0x10,%rsp"},
{address="0x0000000000400996",func-name="__static_initialization_and_destruction_0(int, int)",offset="8",inst="mov %edi,-0x4(%rbp)"},
{address="0x0000000000400999",func-name="__static_initialization_and_destruction_0(int, int)",offset="11",inst="mov %esi,-0x8(%rbp)"}
]
-data-disassemble -s $pc -e "$pc + 96" -- 2
^done,asm_insns=[
{address="0x000000000040093c",func-name="main()",offset="362",opcodes="bf a9 0a 40 00",inst="mov $0x400aa9,%edi"},
{address="0x0000000000400941",func-name="main()",offset="367",opcodes="e8 3a fd ff ff",inst="call 0x400680 <puts@plt>"},
{address="0x0000000000400946",func-name="main()",offset="372",opcodes="48 8b 45 d0",inst="mov -0x30(%rbp),%rax"},
{address="0x000000000040094a",func-name="main()",offset="376",opcodes="48 89 c7",inst="mov %rax,%rdi"},
{address="0x000000000040094d",func-name="main()",offset="379",opcodes="e8 fe fc ff ff",inst="call 0x400650 <free@plt>"},
{address="0x0000000000400952",func-name="main()",offset="384",opcodes="48 8b 45 c8",inst="mov -0x38(%rbp),%rax"},
{address="0x0000000000400956",func-name="main()",offset="388",opcodes="48 89 c7",inst="mov %rax,%rdi"},
{address="0x0000000000400959",func-name="main()",offset="391",opcodes="e8 f2 fc ff ff",inst="call 0x400650 <free@plt>"},
{address="0x000000000040095e",func-name="main()",offset="396",opcodes="48 8b 45 c0",inst="mov -0x40(%rbp),%rax"},
{address="0x0000000000400962",func-name="main()",offset="400",opcodes="48 89 c7",inst="mov %rax,%rdi"},
{address="0x0000000000400965",func-name="main()",offset="403",opcodes="e8 e6 fc ff ff",inst="call 0x400650 <free@plt>"},
{address="0x000000000040096a",func-name="main()",offset="408",opcodes="48 8b 45 a0",inst="mov -0x60(%rbp),%rax"},
{address="0x000000000040096e",func-name="main()",offset="412",opcodes="48 89 c7",inst="mov %rax,%rdi"},
{address="0x0000000000400971",func-name="main()",offset="415",opcodes="e8 da fc ff ff",inst="call 0x400650 <free@plt>"},
{address="0x0000000000400976",func-name="main()",offset="420",opcodes="48 8b 45 98",inst="mov -0x68(%rbp),%rax"},
{address="0x000000000040097a",func-name="main()",offset="424",opcodes="48 89 c7",inst="mov %rax,%rdi"},
{address="0x000000000040097d",func-name="main()",offset="427",opcodes="e8 ce fc ff ff",inst="call 0x400650 <free@plt>"},
{address="0x0000000000400982",func-name="main()",offset="432",opcodes="b8 00 00 00 00",inst="mov $0x0,%eax"},
{address="0x0000000000400987",func-name="main()",offset="437",opcodes="48 83 c4 68",inst="add $0x68,%rsp"},
{address="0x000000000040098b",func-name="main()",offset="441",opcodes="5b",inst="pop %rbx"},
{address="0x000000000040098c",func-name="main()",offset="442",opcodes="5d",inst="pop %rbp"},
{address="0x000000000040098d",func-name="main()",offset="443",opcodes="c3",inst="ret "},
{address="0x000000000040098e",func-name="__static_initialization_and_destruction_0(int, int)",offset="0",opcodes="55",inst="push %rbp"},
{address="0x000000000040098f",func-name="__static_initialization_and_destruction_0(int, int)",offset="1",opcodes="48 89 e5",inst="mov %rsp,%rbp"},
{address="0x0000000000400992",func-name="__static_initialization_and_destruction_0(int, int)",offset="4",opcodes="48 83 ec 10",inst="sub $0x10,%rsp"},
{address="0x0000000000400996",func-name="__static_initialization_and_destruction_0(int, int)",offset="8",opcodes="89 7d fc",inst="mov %edi,-0x4(%rbp)"},
{address="0x0000000000400999",func-name="__static_initialization_and_destruction_0(int, int)",offset="11",opcodes="89 75 f8",inst="mov %esi,-0x8(%rbp)"}
]
-data-disassemble -s $pc -e "$pc + 96" -- 4
^done,asm_insns=[
src_and_asm_line={
line="72",
file="helloarray.cpp",
fullname="/home/erniep/Development/Peak/src/seer/tests/helloarray/helloarray.cpp",
line_asm_insn=[
{address="0x000000000040093c",func-name="main()",offset="362",inst="mov $0x400aa9,%edi"},
{address="0x0000000000400941",func-name="main()",offset="367",inst="call 0x400680 <puts@plt>"}
]
},
src_and_asm_line={line="73",file="helloarray.cpp",fullname="/home/erniep/Development/Peak/src/seer/tests/helloarray/helloarray.cpp",line_asm_insn=[]},
src_and_asm_line={line="74",file="helloarray.cpp",fullname="/home/erniep/Development/Peak/src/seer/tests/helloarray/helloarray.cpp",line_asm_insn=[{address="0x0000000000400946",func-name="main()",offset="372",inst="mov -0x30(%rbp),%rax"},{address="0x000000000040094a",func-name="main()",offset="376",inst="mov %rax,%rdi"},{address="0x000000000040094d",func-name="main()",offset="379",inst="call 0x400650 <free@plt>"}]},
src_and_asm_line={line="75",file="helloarray.cpp",fullname="/home/erniep/Development/Peak/src/seer/tests/helloarray/helloarray.cpp",line_asm_insn=[{address="0x0000000000400952",func-name="main()",offset="384",inst="mov -0x38(%rbp),%rax"},{address="0x0000000000400956",func-name="main()",offset="388",inst="mov %rax,%rdi"},{address="0x0000000000400959",func-name="main()",offset="391",inst="call 0x400650 <free@plt>"}]},
src_and_asm_line={line="76",file="helloarray.cpp",fullname="/home/erniep/Development/Peak/src/seer/tests/helloarray/helloarray.cpp",line_asm_insn=[{address="0x000000000040095e",func-name="main()",offset="396",inst="mov -0x40(%rbp),%rax"},{address="0x0000000000400962",func-name="main()",offset="400",inst="mov %rax,%rdi"},{address="0x0000000000400965",func-name="main()",offset="403",inst="call 0x400650 <free@plt>"}]},
src_and_asm_line={line="77",file="helloarray.cpp",fullname="/home/erniep/Development/Peak/src/seer/tests/helloarray/helloarray.cpp",line_asm_insn=[{address="0x000000000040096a",func-name="main()",offset="408",inst="mov -0x60(%rbp),%rax"},{address="0x000000000040096e",func-name="main()",offset="412",inst="mov %rax,%rdi"},{address="0x0000000000400971",func-name="main()",offset="415",inst="call 0x400650 <free@plt>"}]},
src_and_asm_line={line="78",file="helloarray.cpp",fullname="/home/erniep/Development/Peak/src/seer/tests/helloarray/helloarray.cpp",line_asm_insn=[{address="0x0000000000400976",func-name="main()",offset="420",inst="mov -0x68(%rbp),%rax"},{address="0x000000000040097a",func-name="main()",offset="424",inst="mov %rax,%rdi"},{address="0x000000000040097d",func-name="main()",offset="427",inst="call 0x400650 <free@plt>"}]},
src_and_asm_line={line="79",file="helloarray.cpp",fullname="/home/erniep/Development/Peak/src/seer/tests/helloarray/helloarray.cpp",line_asm_insn=[]},
src_and_asm_line={line="80",file="helloarray.cpp",fullname="/home/erniep/Development/Peak/src/seer/tests/helloarray/helloarray.cpp",line_asm_insn=[{address="0x0000000000400982",func-name="main()",offset="432",inst="mov $0x0,%eax"}]},
src_and_asm_line={line="81",file="helloarray.cpp",fullname="/home/erniep/Development/Peak/src/seer/tests/helloarray/helloarray.cpp",line_asm_insn=[{address="0x0000000000400987",func-name="main()",offset="437",inst="add $0x68,%rsp"},{address="0x000000000040098b",func-name="main()",offset="441",inst="pop %rbx"},{address="0x000000000040098c",func-name="main()",offset="442",inst="pop %rbp"},{address="0x000000000040098d",func-name="main()",offset="443",inst="ret "},{address="0x000000000040098e",func-name="__static_initialization_and_destruction_0(int, int)",offset="0",inst="push %rbp"},{address="0x000000000040098f",func-name="__static_initialization_and_destruction_0(int, int)",offset="1",inst="mov %rsp,%rbp"},{address="0x0000000000400992",func-name="__static_initialization_and_destruction_0(int, int)",offset="4",inst="sub $0x10,%rsp"},{address="0x0000000000400996",func-name="__static_initialization_and_destruction_0(int, int)",offset="8",inst="mov %edi,-0x4(%rbp)"},{address="0x0000000000400999",func-name="__static_initialization_and_destruction_0(int, int)",offset="11",inst="mov %esi,-0x8(%rbp)"}]}]
-data-disassemble -s $pc -e "$pc + 96" -- 5
^done,asm_insns=[
src_and_asm_line={
line="72",
file="helloarray.cpp",
fullname="/home/erniep/Development/Peak/src/seer/tests/helloarray/helloarray.cpp",
line_asm_insn=[
{address="0x000000000040093c",func-name="main()",offset="362",opcodes="bf a9 0a 40 00",inst="mov $0x400aa9,%edi"},
{address="0x0000000000400941",func-name="main()",offset="367",opcodes="e8 3a fd ff ff",inst="call 0x400680 <puts@plt>"}
]
},
src_and_asm_line={
line="73",
file="helloarray.cpp",
fullname="/home/erniep/Development/Peak/src/seer/tests/helloarray/helloarray.cpp",
line_asm_insn=[
]
},
src_and_asm_line={
line="74",
file="helloarray.cpp",
fullname="/home/erniep/Development/Peak/src/seer/tests/helloarray/helloarray.cpp",
line_asm_insn=[
{address="0x0000000000400946",func-name="main()",offset="372",opcodes="48 8b 45 d0",inst="mov -0x30(%rbp),%rax"},
{address="0x000000000040094a",func-name="main()",offset="376",opcodes="48 89 c7",inst="mov %rax,%rdi"},
{address="0x000000000040094d",func-name="main()",offset="379",opcodes="e8 fe fc ff ff",inst="call 0x400650 <free@plt>"}
]
},
src_and_asm_line={
line="75",
file="helloarray.cpp",
fullname="/home/erniep/Development/Peak/src/seer/tests/helloarray/helloarray.cpp",
line_asm_insn=[
{address="0x0000000000400952",func-name="main()",offset="384",opcodes="48 8b 45 c8",inst="mov -0x38(%rbp),%rax"},
{address="0x0000000000400956",func-name="main()",offset="388",opcodes="48 89 c7",inst="mov %rax,%rdi"},
{address="0x0000000000400959",func-name="main()",offset="391",opcodes="e8 f2 fc ff ff",inst="call 0x400650 <free@plt>"}
]
},
src_and_asm_line={
line="76",
file="helloarray.cpp",
fullname="/home/erniep/Development/Peak/src/seer/tests/helloarray/helloarray.cpp",
line_asm_insn=[
{address="0x000000000040095e",func-name="main()",offset="396",opcodes="48 8b 45 c0",inst="mov -0x40(%rbp),%rax"},
{address="0x0000000000400962",func-name="main()",offset="400",opcodes="48 89 c7",inst="mov %rax,%rdi"},
{address="0x0000000000400965",func-name="main()",offset="403",opcodes="e8 e6 fc ff ff",inst="call 0x400650 <free@plt>"}
]
},
src_and_asm_line={
line="77",
file="helloarray.cpp",
fullname="/home/erniep/Development/Peak/src/seer/tests/helloarray/helloarray.cpp",
line_asm_insn=[
{address="0x000000000040096a",func-name="main()",offset="408",opcodes="48 8b 45 a0",inst="mov -0x60(%rbp),%rax"},
{address="0x000000000040096e",func-name="main()",offset="412",opcodes="48 89 c7",inst="mov %rax,%rdi"},
{address="0x0000000000400971",func-name="main()",offset="415",opcodes="e8 da fc ff ff",inst="call 0x400650 <free@plt>"}
]
},
src_and_asm_line={
line="78",
file="helloarray.cpp",
fullname="/home/erniep/Development/Peak/src/seer/tests/helloarray/helloarray.cpp",
line_asm_insn=[
{address="0x0000000000400976",func-name="main()",offset="420",opcodes="48 8b 45 98",inst="mov -0x68(%rbp),%rax"},
{address="0x000000000040097a",func-name="main()",offset="424",opcodes="48 89 c7",inst="mov %rax,%rdi"},
{address="0x000000000040097d",func-name="main()",offset="427",opcodes="e8 ce fc ff ff",inst="call 0x400650 <free@plt>"}
]
},
src_and_asm_line={
line="79",
file="helloarray.cpp",
fullname="/home/erniep/Development/Peak/src/seer/tests/helloarray/helloarray.cpp",
line_asm_insn=[
]
},
src_and_asm_line={
line="80",
file="helloarray.cpp",
fullname="/home/erniep/Development/Peak/src/seer/tests/helloarray/helloarray.cpp",
line_asm_insn=[
{address="0x0000000000400982",func-name="main()",offset="432",opcodes="b8 00 00 00 00",inst="mov $0x0,%eax"}
]
},
src_and_asm_line={
line="81",
file="helloarray.cpp",
fullname="/home/erniep/Development/Peak/src/seer/tests/helloarray/helloarray.cpp",
line_asm_insn=[
{address="0x0000000000400987",func-name="main()",offset="437",opcodes="48 83 c4 68",inst="add $0x68,%rsp"},
{address="0x000000000040098b",func-name="main()",offset="441",opcodes="5b",inst="pop %rbx"},
{address="0x000000000040098c",func-name="main()",offset="442",opcodes="5d",inst="pop %rbp"},
{address="0x000000000040098d",func-name="main()",offset="443",opcodes="c3",inst="ret "},
{address="0x000000000040098e",func-name="__static_initialization_and_destruction_0(int, int)",offset="0",opcodes="55",inst="push %rbp"},
{address="0x000000000040098f",func-name="__static_initialization_and_destruction_0(int, int)",offset="1",opcodes="48 89 e5",inst="mov %rsp,%rbp"},
{address="0x0000000000400992",func-name="__static_initialization_and_destruction_0(int, int)",offset="4",opcodes="48 83 ec 10",inst="sub $0x10,%rsp"},
{address="0x0000000000400996",func-name="__static_initialization_and_destruction_0(int, int)",offset="8",opcodes="89 7d fc",inst="mov %edi,-0x4(%rbp)"},
{address="0x0000000000400999",func-name="__static_initialization_and_destruction_0(int, int)",offset="11",opcodes="89 75 f8",inst="mov %esi,-0x8(%rbp)"}
]
}
]
^done,asm_insns=[{address="0x08048080",func-name="_start",offset="0",opcodes="ba 0e 00 00 00",inst="mov $0xe,%edx"},{address="0x08048085",func-name="_start",offset="5",opcodes="b9 a4 90 04 08",inst="mov $0x80490a4,%ecx"},{address="0x0804808a",func-name="_start",offset="10",opcodes="bb 01 00 00 00",inst="mov $0x1,%ebx"},{address="0x0804808f",func-name="_start",offset="15",opcodes="b8 04 00 00 00",inst="mov $0x4,%eax"},{address="0x08048094",func-name="_start",offset="20",opcodes="cd 80",inst="int $0x80"},{address="0x08048096",func-name="_start",offset="22",opcodes="bb 00 00 00 00",inst="mov $0x0,%ebx"},{address="0x0804809b",func-name="_start",offset="27",opcodes="b8 01 00 00 00",inst="mov $0x1,%eax"},{address="0x080480a0",func-name="_start",offset="32",opcodes="cd 80",inst="int $0x80"}]
|