This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[AR-PATCH] Remove PTR usage from win32-nat.c
- To: gdb-patches at sources dot redhat dot com
- Subject: [AR-PATCH] Remove PTR usage from win32-nat.c
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Tue, 6 Feb 2001 00:05:40 -0500
2001-02-05 Christopher Faylor <cgf@cygnus.com>
* win32-nat.c: Change PTR to void * throughout.
Index: win32-nat.c
===================================================================
RCS file: /cvs/uberbaum/gdb/win32-nat.c,v
retrieving revision 1.20
diff -u -p -r1.20 win32-nat.c
--- win32-nat.c 2001/01/27 19:32:32 1.20
+++ win32-nat.c 2001/02/06 04:59:18
@@ -514,7 +514,7 @@ register_loaded_dll (const char *name, D
/* Wait for child to do something. Return pid of child, or -1 in case
of error; store status through argument pointer OURSTATUS. */
static int
-handle_load_dll (PTR dummy ATTRIBUTE_UNUSED)
+handle_load_dll (void *dummy ATTRIBUTE_UNUSED)
{
LOAD_DLL_DEBUG_INFO *event = ¤t_event.u.LoadDll;
DWORD dll_name_ptr;
@@ -1489,7 +1489,7 @@ typedef struct
map_code_section_args;
static void
-map_single_dll_code_section (bfd * abfd, asection * sect, PTR obj)
+map_single_dll_code_section (bfd * abfd, asection * sect, void *obj)
{
int old;
int update_coreops;
@@ -1554,14 +1554,14 @@ dll_code_sections_add (const char *dll_n
map_args.target = target;
map_args.addr = base_addr - bfd_section_vma (dll_bfd, lowest_sect);
- bfd_map_over_sections (dll_bfd, &map_single_dll_code_section, (PTR) (&map_args));
+ bfd_map_over_sections (dll_bfd, &map_single_dll_code_section, (void *) (&map_args));
}
return 1;
}
static void
-core_section_load_dll_symbols (bfd * abfd, asection * sect, PTR obj)
+core_section_load_dll_symbols (bfd * abfd, asection * sect, void *obj)
{
struct target_ops *target = (struct target_ops *) obj;