]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* objdump.c (display_file): Remove call to list_matching_formats.
authorDavid MacKenzie <djm@cygnus>
Tue, 25 Jan 1994 13:27:56 +0000 (13:27 +0000)
committerDavid MacKenzie <djm@cygnus>
Tue, 25 Jan 1994 13:27:56 +0000 (13:27 +0000)
It would never be called.
(list_matching_formats): Take an arg giving the list of matching
formats.
(display_bfd): Pass the arg, and get it filled in by calling
bfd_check_format_matches instead of bfd_check_format.
(display_info, display_info_table): target_vector was renamed to
bfd_target_vector.

binutils/ChangeLog
binutils/objdump.c

index 794d6de038e080a9ccabe16200e16403ffeb0a87..a4fc4cea8e7cb3e73d2e8bdc724e33730845704b 100644 (file)
@@ -6,6 +6,8 @@ Mon Jan 24 13:29:02 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
        formats.
        (display_bfd): Pass the arg, and get it filled in by calling
        bfd_check_format_matches instead of bfd_check_format.
+       (display_info, display_info_table): target_vector was renamed to
+       bfd_target_vector. 
 
        * binutils.texi (objdump): Note some limitations of -h section
        address printing.
index 125f3a1c1335c4ad27ff417338137585279b8eba..870bb9d0ffea9e35c765a16a9f36b0219a648771 100644 (file)
@@ -165,8 +165,8 @@ dump_headers (abfd)
 }
 
 static asymbol **
-DEFUN (slurp_symtab, (abfd),
-       bfd * abfd)
+slurp_symtab (abfd)
+     bfd *abfd;
 {
   asymbol **sy = (asymbol **) NULL;
 
@@ -1157,24 +1157,25 @@ dump_relocs (abfd)
 #define _DUMMY_NAME_ "##dummy"
 #endif
 static void
-DEFUN (display_info_table, (first, last),
-       int first AND int last)
+display_info_table (first, last)
+     int first;
+     int last;
 {
   unsigned int i, j;
-  extern bfd_target *target_vector[];
+  extern bfd_target *bfd_target_vector[];
 
   printf ("\n%12s", " ");
-  for (i = first; i++ < last && target_vector[i];)
-    printf ("%s ", target_vector[i]->name);
+  for (i = first; i++ < last && bfd_target_vector[i];)
+    printf ("%s ", bfd_target_vector[i]->name);
   printf ("\n");
 
   for (j = (int) bfd_arch_obscure + 1; (int) j < (int) bfd_arch_last; j++)
     if (strcmp (bfd_printable_arch_mach (j, 0), "UNKNOWN!") != 0)
       {
        printf ("%11s ", bfd_printable_arch_mach (j, 0));
-       for (i = first; i++ < last && target_vector[i];)
+       for (i = first; i++ < last && bfd_target_vector[i];)
          {
-           bfd_target *p = target_vector[i];
+           bfd_target *p = bfd_target_vector[i];
            bfd *abfd = bfd_openw (_DUMMY_NAME_, p->name);
            int l = strlen (p->name);
            int ok;
@@ -1195,17 +1196,17 @@ DEFUN (display_info_table, (first, last),
 }
 
 static void
-DEFUN_VOID (display_info)
+display_info ()
 {
   char *colum;
   unsigned int i, j, columns;
-  extern bfd_target *target_vector[];
+  extern bfd_target *bfd_target_vector[];
   extern char *getenv ();
 
   printf ("BFD header file version %s\n", BFD_VERSION);
-  for (i = 0; target_vector[i]; i++)
+  for (i = 0; bfd_target_vector[i]; i++)
     {
-      bfd_target *p = target_vector[i];
+      bfd_target *p = bfd_target_vector[i];
       bfd *abfd = bfd_openw (_DUMMY_NAME_, p->name);
       bfd_set_format (abfd, bfd_object);
       printf ("%s\n (header %s, data %s)\n", p->name,
@@ -1221,12 +1222,12 @@ DEFUN_VOID (display_info)
     columns = atoi (colum);
   if (!columns)
     columns = 80;
-  for (i = 0; target_vector[i];)
+  for (i = 0; bfd_target_vector[i];)
     {
       int old;
       old = i;
-      for (j = 12; target_vector[i] && j < columns; i++)
-       j += strlen (target_vector[i]->name) + 1;
+      for (j = 12; bfd_target_vector[i] && j < columns; i++)
+       j += strlen (bfd_target_vector[i]->name) + 1;
       i--;
       if (old == i)
        break;
@@ -1241,8 +1242,6 @@ main (argc, argv)
      char **argv;
 {
   int c;
-  extern int optind;
-  extern char *optarg;
   char *target = default_target;
   boolean seenflag = false;