aboutsummaryrefslogtreecommitdiff
path: root/include/dis-asm.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-06-15 11:37:26 +0000
committerNick Clifton <nickc@redhat.com>2009-06-15 11:37:26 +0000
commit1316c8b37f7e034b92e26695eea207e9a4cf25a0 (patch)
tree58df998bb587809f33b964fdf20da7342b45c5bc /include/dis-asm.h
parentec68b08387d9dbda1a4470de82c12cebc896a614 (diff)
downloadgdb-1316c8b37f7e034b92e26695eea207e9a4cf25a0.zip
gdb-1316c8b37f7e034b92e26695eea207e9a4cf25a0.tar.gz
gdb-1316c8b37f7e034b92e26695eea207e9a4cf25a0.tar.bz2
PR 10263
* arm-dis.c (print_insn): Ignore is_data if the user has requested the disassembly of data as well as instructions. * objdump.c (disassemble_bytes): Set the DISASSEMBLE_DATA bit in the flags field of the disassemble_info structure if the -D switch is in operation. * dis-asm.h (struct disassemble_info): New value for the flags field.
Diffstat (limited to 'include/dis-asm.h')
-rw-r--r--include/dis-asm.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/include/dis-asm.h b/include/dis-asm.h
index 95d141f..3872f8b 100644
--- a/include/dis-asm.h
+++ b/include/dis-asm.h
@@ -1,6 +1,6 @@
/* Interface between the opcode library and its callers.
- Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+ Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -39,14 +39,14 @@ extern "C" {
enum dis_insn_type
{
- dis_noninsn, /* Not a valid instruction */
- dis_nonbranch, /* Not a branch instruction */
- dis_branch, /* Unconditional branch */
- dis_condbranch, /* Conditional branch */
- dis_jsr, /* Jump to subroutine */
- dis_condjsr, /* Conditional jump to subroutine */
- dis_dref, /* Data reference instruction */
- dis_dref2 /* Two data references in instruction */
+ dis_noninsn, /* Not a valid instruction. */
+ dis_nonbranch, /* Not a branch instruction. */
+ dis_branch, /* Unconditional branch. */
+ dis_condbranch, /* Conditional branch. */
+ dis_jsr, /* Jump to subroutine. */
+ dis_condjsr, /* Conditional jump to subroutine. */
+ dis_dref, /* Data reference instruction. */
+ dis_dref2 /* Two data references in instruction. */
};
/* This struct is passed into the instruction decoding routine,
@@ -108,7 +108,13 @@ typedef struct disassemble_info
The top 16 bits are reserved for public use (and are documented here).
The bottom 16 bits are for the internal use of the disassembler. */
unsigned long flags;
-#define INSN_HAS_RELOC 0x80000000
+ /* Set if the disassembler has determined that there are one or more
+ relocations associated with the instruction being disassembled. */
+#define INSN_HAS_RELOC (1 << 31)
+ /* Set if the user has requested the disassembly of data as well as code. */
+#define DISASSEMBLE_DATA (1 << 30)
+
+ /* Use internally by the target specific disassembly code. */
void *private_data;
/* Function used to get bytes to disassemble. MEMADDR is the