aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-10-03 01:50:53 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-10-03 01:50:53 +0000
commit77fe3f84ff130692eba37c0d62275cfcf92efa74 (patch)
tree08b01ff15e00b13c7389906848e2a37ac5b290a1
parentbde18e3eaa9a354103b5d640caf2fe443daa44ed (diff)
downloadgdb-77fe3f84ff130692eba37c0d62275cfcf92efa74.zip
gdb-77fe3f84ff130692eba37c0d62275cfcf92efa74.tar.gz
gdb-77fe3f84ff130692eba37c0d62275cfcf92efa74.tar.bz2
* mipsread.c, objfiles.c, utils.c: Use PTR not void *. RISC/OS
4.02 lacks void *. * elfread.c: Use void * not PTR inside PARAMS.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/elfread.c4
-rw-r--r--gdb/objfiles.c4
3 files changed, 8 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c092eec..5aa65ea 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
Sat Oct 2 19:28:35 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
+ * mipsread.c, objfiles.c, utils.c: Use PTR not void *. RISC/OS
+ 4.02 lacks void *.
+ * elfread.c: Use void * not PTR inside PARAMS.
+
* config/mips/news-mips.mh: Remove coredep.o; mips-nat.o does it.
* config/mips/news-mips.mh: Define NAT_FILE not NM_FILE.
* config/mips/nm-news-mips.h: Include mips/nm-mips.h not nm-mips.h.
diff --git a/gdb/elfread.c b/gdb/elfread.c
index c1bf574..1276deb 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -77,7 +77,7 @@ static void
elf_symtab_read PARAMS ((bfd *, CORE_ADDR, struct objfile *));
static void
-free_elfinfo PARAMS ((PTR));
+free_elfinfo PARAMS ((void *));
static struct section_offsets *
elf_symfile_offsets PARAMS ((struct objfile *, CORE_ADDR));
@@ -88,7 +88,7 @@ record_minimal_symbol_and_info PARAMS ((char *, CORE_ADDR,
struct objfile *));
static void
-elf_locate_sections PARAMS ((bfd *, asection *, PTR));
+elf_locate_sections PARAMS ((bfd *, asection *, void *));
/* We are called once per section from elf_symfile_read. We
need to examine each section we are passed, check to see
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index 7b55084..b111f00 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -121,7 +121,7 @@ allocate_objfile (abfd, mapped)
{
struct objfile *objfile = NULL;
int fd;
- void *md;
+ PTR md;
CORE_ADDR mapto;
mapped |= mapped_symbol_files;
@@ -142,7 +142,7 @@ allocate_objfile (abfd, mapped)
if (fd >= 0)
{
if (((mapto = map_to_address ()) == 0) ||
- ((md = mmalloc_attach (fd, (void *) mapto)) == NULL))
+ ((md = mmalloc_attach (fd, (PTR) mapto)) == NULL))
{
close (fd);
}