/* Handle AIX5 shared libraries for GDB, the GNU Debugger.
- Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000,
- 2001
- Free Software Foundation, Inc.
+ Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000,
+ 2001, 2007 Free Software Foundation, Inc.
This file is part of GDB.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
+ Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA. */
#include "defs.h"
/* Open the map file */
- xasprintf (&map_pathname, "/proc/%d/map", pid);
+ map_pathname = xstrprintf ("/proc/%d/map", pid);
map_fd = open (map_pathname, O_RDONLY);
xfree (map_pathname);
if (map_fd < 0)
if (sos == NULL)
{
- warning ("Could not find name of main executable in map file");
+ warning (_("Could not find name of main executable in map file"));
return 0;
}
/* Make sure the dynamic linker's really a useful object. */
if (!bfd_check_format (tmp_bfd, bfd_object))
{
- warning ("Unable to grok dynamic linker %s as an object file", buf);
+ warning (_("Unable to grok dynamic linker %s as an object file"), buf);
bfd_close (tmp_bfd);
goto bkpt_at_symbol;
}
/* For whatever reason we couldn't set a breakpoint in the dynamic
linker. Warn and drop into the old code. */
bkpt_at_symbol:
- warning ("Unable to find dynamic linker breakpoint function.\nGDB will be unable to debug shared library initializers\nand track explicitly loaded dynamic code.");
+ warning (_("Unable to find dynamic linker breakpoint function.\nGDB will be unable to debug shared library initializers\nand track explicitly loaded dynamic code."));
}
/* Nothing good happened. */
return idx == okay[i].idx;
}
- warning ("solib-aix5.c: Ignoring section %s when relocating the executable\n",
+ warning (_("Ignoring section %s when relocating the executable."),
name);
return 0;
}
/* Make sure we actually have some mappings to work with. */
if (so == NULL)
{
- warning ("Could not find main executable in map file");
+ warning (_("Could not find main executable in map file"));
do_cleanups (old_chain);
return;
}
SYNOPSIS
- void aix5_solib_create_inferior_hook()
+ void aix5_solib_create_inferior_hook ()
DESCRIPTION
if (!enable_break ())
{
- warning ("shared library handler failed to enable breakpoint");
+ warning (_("shared library handler failed to enable breakpoint"));
return;
}
}
if (idx >= so->lm_info->nmappings)
internal_error (__FILE__, __LINE__,
- "aix_relocate_section_addresses: Can't find mapping for section %s",
+ _("aix_relocate_section_addresses: Can't find mapping for section %s"),
bfd_get_section_name (sec->bfd, sec->the_bfd_section));
addr = so->lm_info->mapping[idx].addr;
/* Make sure we actually have some mappings to work with. */
if (so == NULL)
{
- warning ("Could not find gate page in map file");
+ warning (_("Could not find gate page in map file"));
*start = 0;
*end = 0;
do_cleanups (old_chain);