mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-02 04:27:46 +08:00
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.
This commit is contained in:
@ -1525,7 +1525,7 @@ disassemble_bytes (struct disassemble_info * info,
|
||||
info->stream = &sfile;
|
||||
info->bytes_per_line = 0;
|
||||
info->bytes_per_chunk = 0;
|
||||
info->flags = 0;
|
||||
info->flags = disassemble_all ? DISASSEMBLE_DATA : 0;
|
||||
|
||||
if (info->disassembler_needs_relocs
|
||||
&& (bfd_get_file_flags (aux->abfd) & EXEC_P) == 0
|
||||
@ -1554,7 +1554,7 @@ disassemble_bytes (struct disassemble_info * info,
|
||||
|| (distance_to_rel > 0
|
||||
&& distance_to_rel < (bfd_signed_vma) (previous_octets/ opb)))
|
||||
{
|
||||
info->flags = INSN_HAS_RELOC;
|
||||
info->flags |= INSN_HAS_RELOC;
|
||||
aux->reloc = **relppp;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user