Fix the triplet regexp to recognize triplets, not only quadruplets
[deliverable/binutils-gdb.git] / gdb / compile / compile-object-load.c
index eedc9fae16bcee78b1d2f9f466eac78980b142e7..8a7f2327f6014d13d2f8d3edb846a3a4aa38c1ed 100644 (file)
@@ -1,6 +1,6 @@
 /* Load module for 'compile' command.
 
-   Copyright (C) 2014 Free Software Foundation, Inc.
+   Copyright (C) 2014-2015 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -67,7 +67,7 @@ setup_sections (bfd *abfd, asection *sect, void *data_voidp)
       if ((bfd_get_section_flags (abfd, sect) & SEC_ALLOC) == 0)
        return;
 
-      // Make the memory always readable.
+      /* Make the memory always readable.  */
       prot = GDB_MMAP_PROT_READ;
       if ((bfd_get_section_flags (abfd, sect) & SEC_READONLY) == 0)
        prot |= GDB_MMAP_PROT_WRITE;
@@ -149,7 +149,7 @@ link_callbacks_multiple_definition (struct bfd_link_info *link_info,
 
   if (link_info->allow_multiple_definition)
     return TRUE;
-  warning (_("Compiled module \"%s\": multiple symbol definitions: %s\n"),
+  warning (_("Compiled module \"%s\": multiple symbol definitions: %s"),
           bfd_get_filename (abfd), h->root.string);
   return FALSE;
 }
@@ -161,7 +161,7 @@ link_callbacks_warning (struct bfd_link_info *link_info, const char *xwarning,
                         const char *symbol, bfd *abfd, asection *section,
                        bfd_vma address)
 {
-  warning (_("Compiled module \"%s\" section \"%s\": warning: %s\n"),
+  warning (_("Compiled module \"%s\" section \"%s\": warning: %s"),
           bfd_get_filename (abfd), bfd_get_section_name (abfd, section),
           xwarning);
   /* Maybe permit running as a module?  */
@@ -224,6 +224,9 @@ link_callbacks_unattached_reloc (struct bfd_link_info *link_info,
 
 /* Helper for link_callbacks callbacks vector.  */
 
+static void link_callbacks_einfo (const char *fmt, ...)
+  ATTRIBUTE_PRINTF (1, 2);
+
 static void
 link_callbacks_einfo (const char *fmt, ...)
 {
@@ -236,7 +239,7 @@ link_callbacks_einfo (const char *fmt, ...)
   va_end (ap);
   cleanups = make_cleanup (xfree, str);
 
-  warning (_("Compile module: warning: %s\n"), str);
+  warning (_("Compile module: warning: %s"), str);
 
   do_cleanups (cleanups);
 }
This page took 0.024614 seconds and 4 git commands to generate.