OSDN Git Service

Add support for documenting target specific disassembler options
authornickc <nickc>
Thu, 27 Jan 2000 21:44:26 +0000 (21:44 +0000)
committernickc <nickc>
Thu, 27 Jan 2000 21:44:26 +0000 (21:44 +0000)
binutils/ChangeLog
binutils/objdump.c
include/ChangeLog
include/dis-asm.h
opcodes/ChangeLog
opcodes/disassemble.c

index 45b7a22..c6625c6 100644 (file)
@@ -1,3 +1,7 @@
+2000-01-27  Nick Clifton  <nickc@redhat.com>
+
+       * objdump.c (usage): Call disassembler_usage().
+
 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
 
        * readelf.c (get_dynamic_flags): Return buff.
index 44c92e7..f2baff2 100644 (file)
@@ -268,6 +268,8 @@ usage (stream, status)
       --adjust-vma <offset>      Add <offset> 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"));
index 3642131..1c96081 100644 (file)
@@ -1,3 +1,7 @@
+2000-01-27  Nick Clifton  <nickc@redhat.com>
+
+       * dis-asm.h: Add prototype for disassembler_usage().
+
 1999-12-15  Doug Evans  <dje@transmeta.com>
 
        * dis-asm.h: Enclose in extern "C" ifdef __cplusplus.
index 121b398..b9383fa 100644 (file)
@@ -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 *));
+
 \f
 /* This block of definitions is for particular callers who read instructions
    into a buffer before calling the instruction decoder.  */
index 9802397..a4a3cf3 100644 (file)
@@ -1,3 +1,8 @@
+2000-01-27  Nick Clifton  <nickc@redhat.com>
+
+       * disassemble.c (disassembler_usage): New function: Print out any
+       target specific disassembler options.
+
 2000-01-27  Thomas de Lellis  <tdel@windriver.com>
 
         * arm-dis.c (printf_insn_big_arm): Treat ELF symbols with the
index 74947f0..fac39ca 100644 (file)
@@ -251,3 +251,9 @@ disassembler (abfd)
     }
   return disassemble;
 }
+
+void
+disassembler_usage (FILE * stream)
+{
+  return;
+}