* amd64-tdep.c: Include disasm.h.
(amd64_insn_length_fprintf, amd64_insn_length_init_dis) (amd64_insn_length): Moved to disasm.c and renamed. (fixup_riprel): Adjust. * disasm.c (do_ui_file_delete): New. (gdb_insn_length): New. (gdb_buffered_insn_length_fprintf) (gdb_buffered_insn_length_init_dis) (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and renamed. * disasm.h (gdb_insn_length): Declare. (gdb_buffered_insn_length): Declare.
This commit is contained in:
parent
02357a4aaf
commit
eda5a4d720
4 changed files with 103 additions and 53 deletions
12
gdb/disasm.h
12
gdb/disasm.h
|
@ -37,4 +37,16 @@ extern void gdb_disassembly (struct gdbarch *gdbarch, struct ui_out *uiout,
|
|||
extern int gdb_print_insn (struct gdbarch *gdbarch, CORE_ADDR memaddr,
|
||||
struct ui_file *stream, int *branch_delay_insns);
|
||||
|
||||
/* Return the length in bytes of the instruction at address MEMADDR in
|
||||
debugged memory. */
|
||||
|
||||
extern int gdb_insn_length (struct gdbarch *gdbarch, CORE_ADDR memaddr);
|
||||
|
||||
/* Return the length in bytes of INSN, originally at MEMADDR. MAX_LEN
|
||||
is the size of the buffer containing INSN. */
|
||||
|
||||
extern int gdb_buffered_insn_length (struct gdbarch *gdbarch,
|
||||
const gdb_byte *insn, int max_len,
|
||||
CORE_ADDR memaddr);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue