/* 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.
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;
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;
}
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? */
/* 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, ...)
{
va_end (ap);
cleanups = make_cleanup (xfree, str);
- warning (_("Compile module: warning: %s\n"), str);
+ warning (_("Compile module: warning: %s"), str);
do_cleanups (cleanups);
}