From 94470b237bcb47804bd9a9e14ab45cb83eedd6f7 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 27 Jan 2000 21:44:26 +0000 Subject: [PATCH] Add support for documenting target specific disassembler options --- binutils/ChangeLog | 4 ++++ binutils/objdump.c | 2 ++ include/ChangeLog | 4 ++++ include/dis-asm.h | 3 +++ opcodes/ChangeLog | 5 +++++ opcodes/disassemble.c | 6 ++++++ 6 files changed, 24 insertions(+) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 45b7a226e0a..c6625c6d734 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2000-01-27 Nick Clifton + + * objdump.c (usage): Call disassembler_usage(). + 2000-01-27 Alan Modra * readelf.c (get_dynamic_flags): Return buff. diff --git a/binutils/objdump.c b/binutils/objdump.c index 44c92e779cb..f2baff21bf3 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -268,6 +268,8 @@ usage (stream, status) --adjust-vma Add to all displayed section addresses\n\ \n")); list_supported_targets (program_name, stream); + + disassembler_usage (stream); } if (status == 0) fprintf (stream, _("Report bugs to bug-gnu-utils@gnu.org\n")); diff --git a/include/ChangeLog b/include/ChangeLog index 36421318ddf..1c96081cca9 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2000-01-27 Nick Clifton + + * dis-asm.h: Add prototype for disassembler_usage(). + 1999-12-15 Doug Evans * dis-asm.h: Enclose in extern "C" ifdef __cplusplus. diff --git a/include/dis-asm.h b/include/dis-asm.h index 121b3983030..b9383fa7108 100644 --- a/include/dis-asm.h +++ b/include/dis-asm.h @@ -194,6 +194,9 @@ extern int arm_toggle_regnames PARAMS ((void)); /* Fetch the disassembler for a given BFD, if that support is available. */ extern disassembler_ftype disassembler PARAMS ((bfd *)); +/* Document any target specific options available from the disassembler. */ +extern void disassembler_usage PARAMS ((FILE *)); + /* This block of definitions is for particular callers who read instructions into a buffer before calling the instruction decoder. */ diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 9802397cf3d..a4a3cf38dc1 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2000-01-27 Nick Clifton + + * disassemble.c (disassembler_usage): New function: Print out any + target specific disassembler options. + 2000-01-27 Thomas de Lellis * arm-dis.c (printf_insn_big_arm): Treat ELF symbols with the diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c index 74947f0b89c..fac39cae03e 100644 --- a/opcodes/disassemble.c +++ b/opcodes/disassemble.c @@ -251,3 +251,9 @@ disassembler (abfd) } return disassemble; } + +void +disassembler_usage (FILE * stream) +{ + return; +} -- 2.30.2