* [RFA] Change "pid_t" param to long (portability)
@ 2002-01-10 11:40 Michael Snyder
2002-01-10 13:16 ` Richard Henderson
0 siblings, 1 reply; 3+ messages in thread
From: Michael Snyder @ 2002-01-10 11:40 UTC (permalink / raw)
To: binutils, nickc; +Cc: gdb-patches
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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [RFA] Change "pid_t" param to long (portability)
2002-01-10 11:40 [RFA] Change "pid_t" param to long (portability) Michael Snyder
@ 2002-01-10 13:16 ` Richard Henderson
2002-01-10 15:06 ` Michael Snyder
0 siblings, 1 reply; 3+ messages in thread
From: Richard Henderson @ 2002-01-10 13:16 UTC (permalink / raw)
To: Michael Snyder; +Cc: binutils, nickc, gdb-patches
On Thu, Jan 10, 2002 at 11:35:28AM -0800, Michael Snyder wrote:
> * 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;
Ok.
r~
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFA] Change "pid_t" param to long (portability)
2002-01-10 13:16 ` Richard Henderson
@ 2002-01-10 15:06 ` Michael Snyder
0 siblings, 0 replies; 3+ messages in thread
From: Michael Snyder @ 2002-01-10 15:06 UTC (permalink / raw)
To: Richard Henderson; +Cc: binutils, gdb-patches
Richard Henderson wrote:
>
> On Thu, Jan 10, 2002 at 11:35:28AM -0800, Michael Snyder wrote:
> > * 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;
>
> Ok.
And committed. Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-01-10 23:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-10 11:40 [RFA] Change "pid_t" param to long (portability) Michael Snyder
2002-01-10 13:16 ` Richard Henderson
2002-01-10 15:06 ` Michael Snyder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox