diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-01-18 15:55:53 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-01-18 15:55:53 +0000 |
commit | 4efb68b1ad0f40fa002c954c213a516d1e39cfb3 (patch) | |
tree | dd698b5a588dd03316e6d392016860ebd132cef6 /gdb/hpread.c | |
parent | 88e90c405f7b96dc90b19bde321f219e129e7e1c (diff) | |
download | gdb-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/hpread.c')
-rw-r--r-- | gdb/hpread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/hpread.c b/gdb/hpread.c index adcfc45..bf53266 100644 --- a/gdb/hpread.c +++ b/gdb/hpread.c @@ -1664,7 +1664,7 @@ hpread_symfile_init (struct objfile *objfile) asection *vt_section, *slt_section, *lntt_section, *gntt_section; /* Allocate struct to keep track of the symfile */ - objfile->sym_private = (PTR) + objfile->sym_private = xmmalloc (objfile->md, sizeof (struct hpread_symfile_info)); memset (objfile->sym_private, 0, sizeof (struct hpread_symfile_info)); @@ -1959,7 +1959,7 @@ hpread_build_psymtabs (struct objfile *objfile, int mainline) psymtab_include_list = (char **) alloca ((includes_allocated *= 2) * sizeof (char *)); - memcpy ((PTR) psymtab_include_list, (PTR) orig, + memcpy (psymtab_include_list, orig, includes_used * sizeof (char *)); } continue; |