X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=opcodes%2Fdis-buf.c;h=dfc1563f09d72ef6391dd36a0c26356176a55001;hb=ed96bdcba59ec5bba01de1b1db398f338f9200b1;hp=7c5d9ad4b323e538f685512134b78c9f4b149545;hpb=bdc4de1b24353c4213e404029252ec75065499de;p=binutils-gdb.git diff --git a/opcodes/dis-buf.c b/opcodes/dis-buf.c index 7c5d9ad4b32..dfc1563f09d 100644 --- a/opcodes/dis-buf.c +++ b/opcodes/dis-buf.c @@ -1,5 +1,5 @@ /* Disassemble from a buffer, for GNU. - Copyright (C) 1993-2015 Free Software Foundation, Inc. + Copyright (C) 1993-2021 Free Software Foundation, Inc. This file is part of the GNU opcodes library. @@ -32,9 +32,9 @@ buffer_read_memory (bfd_vma memaddr, struct disassemble_info *info) { unsigned int opb = info->octets_per_byte; - unsigned int end_addr_offset = length / opb; - unsigned int max_addr_offset = info->buffer_length / opb; - unsigned int octets = (memaddr - info->buffer_vma) * opb; + size_t end_addr_offset = length / opb; + size_t max_addr_offset = info->buffer_length / opb; + size_t octets = (memaddr - info->buffer_vma) * opb; if (memaddr < info->buffer_vma || memaddr - info->buffer_vma > max_addr_offset @@ -87,20 +87,20 @@ generic_print_address (bfd_vma addr, struct disassemble_info *info) (*info->fprintf_func) (info->stream, "0x%s", buf); } -/* Just return true. */ +/* Just return NULL. */ -int +asymbol * generic_symbol_at_address (bfd_vma addr ATTRIBUTE_UNUSED, struct disassemble_info *info ATTRIBUTE_UNUSED) { - return 1; + return NULL; } /* Just return TRUE. */ -bfd_boolean +bool generic_symbol_is_valid (asymbol * sym ATTRIBUTE_UNUSED, struct disassemble_info *info ATTRIBUTE_UNUSED) { - return TRUE; + return true; }