summaryrefslogtreecommitdiff
path: root/gdb/disasm.h
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2007-06-21 15:18:51 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2007-06-21 15:18:51 +0000
commita131cc65aba4bc97c6da3ae6e253678f975feef2 (patch)
tree809dcfb39f3b60191abe35f4848cb53fb3c21b02 /gdb/disasm.h
parentb28da0ad5f4461c8cd028be8183e3fb489a3cb1f (diff)
downloadgdb-a131cc65aba4bc97c6da3ae6e253678f975feef2.tar.gz
gdb/:
* disasm.c (gdb_print_insn): Return the number of branch delay slot instructions too. * disasm.h (gdb_print_insn): Update prototype. * printcmd.c (branch_delay_insns): New variable to record the number of delay slot instructions after disassembling a branch. (print_formatted): Record the number of branch delay slot instructions. (do_examine): When disassembling, if the last instruction disassembled has any branch delay slots, then bump the count so that they get disassembled too. * tui/tui-disasm.c (tui_disassemble): Update the call to gdb_print_insn(). * NEWS: Document the new behaviour. gdb/doc/: * gdb.texinfo (Examining Memory): Document the new behaviour. gdb/gdbtk/: * generic/gdbtk-cmds.c (gdbtk_load_asm): Update the call to gdb_print_insn().
Diffstat (limited to 'gdb/disasm.h')
-rw-r--r--gdb/disasm.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/disasm.h b/gdb/disasm.h
index b96ad3097ff..4dae0ba8be0 100644
--- a/gdb/disasm.h
+++ b/gdb/disasm.h
@@ -30,9 +30,12 @@ extern void gdb_disassembly (struct ui_out *uiout,
int mixed_source_and_assembly,
int how_many, CORE_ADDR low, CORE_ADDR high);
-/* Print the instruction at address MEMADDR in debugged memory, on
- STREAM. Returns length of the instruction, in bytes. */
+/* Print the instruction at address MEMADDR in debugged memory,
+ on STREAM. Returns the length of the instruction, in bytes,
+ and, if requested, the number of branch delay slot instructions. */
-extern int gdb_print_insn (CORE_ADDR memaddr, struct ui_file *stream);
+extern int gdb_print_insn (CORE_ADDR memaddr,
+ struct ui_file *stream,
+ int *branch_delay_insns);
#endif