Home | History | Annotate | Download | only in gdb

Lines Matching defs:details

17    GNU General Public License for more details.
476 details. */
1080 This contains enough details for displaced stepping purposes. */
1110 /* Details of the instruction. */
1232 amd64_get_unused_input_int_reg (const struct amd64_insn *details)
1252 if (details->opcode_len == 1 && details->modrm_offset == -1)
1253 used_regs_mask |= 1 << (details->raw_insn[details->opcode_offset] & 7);
1256 if (details->modrm_offset != -1)
1258 int modrm = details->raw_insn[details->modrm_offset];
1269 int base = SIB_BASE_FIELD (details->raw_insn[details->modrm_offset + 1]);
1270 int idx = SIB_INDEX_FIELD (details->raw_insn[details->modrm_offset + 1]);
1298 /* Extract the details of INSN that we need. */
1301 amd64_get_insn_details (gdb_byte *insn, struct amd64_insn *details)
1306 details->raw_insn = insn;
1308 details->opcode_len = -1;
1309 details->enc_prefix_offset = -1;
1310 details->opcode_offset = -1;
1311 details->modrm_offset = -1;
1319 details->enc_prefix_offset = insn - start;
1330 details->enc_prefix_offset = insn - start;
1334 details->opcode_offset = insn - start;
1352 details->opcode_len = 3;
1355 details->opcode_len = 2;
1363 details->opcode_len = 1;
1369 details->modrm_offset = insn - start;
1443 const struct amd64_insn *details = &dsc->insn_details;
1445 if (details->modrm_offset != -1)
1447 gdb_byte modrm = details->raw_insn[details->modrm_offset];
1470 struct amd64_insn *details = &dsc->insn_details;
1479 amd64_get_insn_details (buf, details);
1487 if (amd64_syscall_p (details, &syscall_length))
1488 buf[details->opcode_offset + syscall_length] = NOP_OPCODE;
1506 amd64_absolute_jmp_p (const struct amd64_insn *details)
1508 const gdb_byte *insn = &details->raw_insn[details->opcode_offset];
1524 /* Return non-zero if the instruction DETAILS is a jump, zero otherwise. */
1527 amd64_jmp_p (const struct amd64_insn *details)
1529 const gdb_byte *insn = &details->raw_insn[details->opcode_offset];
1539 return amd64_absolute_jmp_p (details);
1543 amd64_absolute_call_p (const struct amd64_insn *details)
1545 const gdb_byte *insn = &details->raw_insn[details->opcode_offset];
1562 amd64_ret_p (const struct amd64_insn *details)
1565 const gdb_byte *insn = &details->raw_insn[details->opcode_offset];
1582 amd64_call_p (const struct amd64_insn *details)
1584 const gdb_byte *insn = &details->raw_insn[details->opcode_offset];
1586 if (amd64_absolute_call_p (details))
1600 amd64_syscall_p (const struct amd64_insn *details, int *lengthp)
1602 const gdb_byte *insn = &details->raw_insn[details->opcode_offset];
1620 struct amd64_insn details;
1625 amd64_get_insn_details (buf.data (), &details);
1627 int classification = pred (&details);