summaryrefslogtreecommitdiff
path: root/gdb/disasm.h
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2009-07-11 14:04:22 +0000
committerHui Zhu <teawater@gmail.com>2009-07-11 14:04:22 +0000
commit2fd4858ffdf9c3e22d34f76adbd971e8bfec86dc (patch)
treefc92aa8fc429390e0fa988eaa8ad8b38d3728311 /gdb/disasm.h
parentd48f210738c8a9031d448ae605e7131395426368 (diff)
downloadgdb-2fd4858ffdf9c3e22d34f76adbd971e8bfec86dc.tar.gz
2009-07-11 Hui Zhu <teawater@gmail.com>
* cli/cli-cmds.c (disassemble_command): Add a new modifier /r to "disassemble" command to print the raw instructions in hex as well as in symbolic form. (init_cli_cmds): Ditto. (print_disassembly): Change "mixed" to "flags" to translate the behavior of disassemble. (disassemble_current_function): Ditto. * mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto. * stack.c (gdb_disassembly_stub): Ditto. * disasm.c (do_mixed_source_and_assembly): Ditto. (do_mixed_source_and_assembly): Ditto. (do_assembly_only): Ditto. (gdb_disassembly): Ditto. (dump_insns): print the raw instructions in hex as well as in symbolic form if DISASSEMBLY_RAW_INSN and flags is true. * disasm.h (DISASSEMBLY_SOURCE): Include source code with the assembly if it and flags is true. (DISASSEMBLY_RAW_INSN): Include the raw instructions in hex with the assembly if it and flags is true. (gdb_disassembly): Update extern. * NEWS: Document disassemble/r support.
Diffstat (limited to 'gdb/disasm.h')
-rw-r--r--gdb/disasm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/disasm.h b/gdb/disasm.h
index a11280d5b15..a6f6d396d28 100644
--- a/gdb/disasm.h
+++ b/gdb/disasm.h
@@ -19,6 +19,9 @@
#ifndef DISASM_H
#define DISASM_H
+#define DISASSEMBLY_SOURCE (0x1 << 0)
+#define DISASSEMBLY_RAW_INSN (0x1 << 1)
+
struct ui_out;
struct ui_file;