This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Change "pid_t" param to long (portability)



Not surprisingly, the "pid_t" parameter declaration does not
compile on some systems.

2002-01-10  Michael Snyder  <msnyder@redhat.com>

	* elf.c (elfcore_write_prstatus): Use long instead of pid_t;
	(elfcore_write_pstatus): Use long instead of pid_t;
	* elf-bfd.h: Change prototypes to use long instead of pid_t;

Index: elf.c
===================================================================
RCS file: /cvs/src/src/bfd/elf.c,v
retrieving revision 1.120
diff -c -3 -p -r1.120 elf.c
*** elf.c	2002/01/09 18:59:11	1.120
--- elf.c	2002/01/10 19:38:36
*************** elfcore_write_prstatus (abfd, buf, bufsi
*** 6562,6568 ****
       bfd *abfd;
       char *buf;
       int *bufsiz;
!      pid_t pid;
       int cursig;
       void *gregs;
  {
--- 6562,6568 ----
       bfd *abfd;
       char *buf;
       int *bufsiz;
!      long pid;
       int cursig;
       void *gregs;
  {
*************** elfcore_write_pstatus (abfd, buf, bufsiz
*** 6584,6590 ****
       bfd *abfd;
       char *buf;
       int *bufsiz;
!      pid_t pid;
       int cursig;
       void *gregs;
  {
--- 6584,6590 ----
       bfd *abfd;
       char *buf;
       int *bufsiz;
!      long pid;
       int cursig;
       void *gregs;
  {
Index: elf-bfd.h
===================================================================
RCS file: /cvs/src/src/bfd/elf-bfd.h,v
retrieving revision 1.63
diff -c -3 -p -r1.63 elf-bfd.h
*** elf-bfd.h	2002/01/08 21:31:36	1.63
--- elf-bfd.h	2002/01/10 19:38:36
*************** extern char *elfcore_write_note 
*** 1524,1532 ****
  extern char *elfcore_write_prpsinfo 
    PARAMS ((bfd *, char *, int *, char *, char *));
  extern char *elfcore_write_prstatus 
!   PARAMS ((bfd *, char *, int *, pid_t, int, void *));
  extern char * elfcore_write_pstatus 
!   PARAMS ((bfd *, char *, int *, pid_t, int, void *));
  extern char *elfcore_write_prfpreg 
    PARAMS ((bfd *, char *, int *, void *, int));
  extern char *elfcore_write_prxfpreg 
--- 1524,1532 ----
  extern char *elfcore_write_prpsinfo 
    PARAMS ((bfd *, char *, int *, char *, char *));
  extern char *elfcore_write_prstatus 
!   PARAMS ((bfd *, char *, int *, long, int, void *));
  extern char * elfcore_write_pstatus 
!   PARAMS ((bfd *, char *, int *, long, int, void *));
  extern char *elfcore_write_prfpreg 
    PARAMS ((bfd *, char *, int *, void *, int));
  extern char *elfcore_write_prxfpreg 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]