aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-01-18 15:55:53 +0000
committerAndrew Cagney <cagney@redhat.com>2003-01-18 15:55:53 +0000
commit4efb68b1ad0f40fa002c954c213a516d1e39cfb3 (patch)
treedd698b5a588dd03316e6d392016860ebd132cef6 /gdb/objfiles.c
parent88e90c405f7b96dc90b19bde321f219e129e7e1c (diff)
downloadgdb-4efb68b1ad0f40fa002c954c213a516d1e39cfb3.zip
gdb-4efb68b1ad0f40fa002c954c213a516d1e39cfb3.tar.gz
gdb-4efb68b1ad0f40fa002c954c213a516d1e39cfb3.tar.bz2
2003-01-18 Andrew Cagney <ac131313@redhat.com>
* ada-valprint.c: Eliminate PTR. * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto. * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto. * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto. * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto. * remote-mips.c, remote-sds.c, remote-vx.c: Ditto. * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto. * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r--gdb/objfiles.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index 9c5e49f..ae1613d 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -52,11 +52,11 @@ static int open_existing_mapped_file (char *, long, int);
static int open_mapped_file (char *filename, long mtime, int flags);
-static PTR map_to_file (int);
+static void *map_to_file (int);
#endif /* defined(USE_MMALLOC) && defined(HAVE_MMAP) */
-static void add_to_objfile_sections (bfd *, sec_ptr, PTR);
+static void add_to_objfile_sections (bfd *, sec_ptr, void *);
/* Externally visible variables that are owned by this module.
See declarations in objfile.h for more info. */
@@ -82,7 +82,7 @@ int mapped_symbol_files; /* Try to use mapped symbol files */
the end of the table (objfile->sections_end). */
static void
-add_to_objfile_sections (bfd *abfd, sec_ptr asect, PTR objfile_p_char)
+add_to_objfile_sections (bfd *abfd, sec_ptr asect, void *objfile_p_char)
{
struct objfile *objfile = (struct objfile *) objfile_p_char;
struct obj_section section;
@@ -178,7 +178,7 @@ allocate_objfile (bfd *abfd, int flags)
flags);
if (fd >= 0)
{
- PTR md;
+ void *md;
if ((md = map_to_file (fd)) == NULL)
{
@@ -900,13 +900,13 @@ open_mapped_file (char *filename, long mtime, int flags)
return (fd);
}
-static PTR
+static void *
map_to_file (int fd)
{
- PTR md;
+ void *md;
CORE_ADDR mapto;
- md = mmalloc_attach (fd, (PTR) 0);
+ md = mmalloc_attach (fd, 0);
if (md != NULL)
{
mapto = (CORE_ADDR) mmalloc_getkey (md, 1);
@@ -919,7 +919,7 @@ map_to_file (int fd)
else if (mapto != (CORE_ADDR) NULL)
{
/* This mapping file needs to be remapped at "mapto" */
- md = mmalloc_attach (fd, (PTR) mapto);
+ md = mmalloc_attach (fd, mapto);
}
else
{
@@ -931,10 +931,10 @@ map_to_file (int fd)
address selected by mmap, we must truncate it before trying
to do an attach at the address we want. */
ftruncate (fd, 0);
- md = mmalloc_attach (fd, (PTR) mapto);
+ md = mmalloc_attach (fd, mapto);
if (md != NULL)
{
- mmalloc_setkey (md, 1, (PTR) mapto);
+ mmalloc_setkey (md, 1, mapto);
}
}
}