From a2e66773735d2d2de2ba652e44650288c88ad752 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 6 Apr 2021 18:57:04 +0930 Subject: Return symbol from symbol_at_address_func include/ * dis-asm.h (struct disassemble_info ): Return asymbol*. binutils/ * objdump.c (objdump_symbol_at_address): Return asymbol*. opcodes/ * dis-buf.c (generic_symbol_at_address): Return symbol* NULL. * s12z-dis.c (decode_possible_symbol): Use symbol returned from symbol_at_address_func. --- opcodes/dis-buf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'opcodes/dis-buf.c') diff --git a/opcodes/dis-buf.c b/opcodes/dis-buf.c index 2a93465..dfc1563 100644 --- a/opcodes/dis-buf.c +++ b/opcodes/dis-buf.c @@ -87,13 +87,13 @@ 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. */ -- cgit v1.1