Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Fix HPUX compile target.h, target.c and remote.c problems
       [not found] ` <36EE1017.55E68457.cygnus.testers.gdb@cygnus.com>
@ 1999-03-16 22:45   ` Andrew Cagney
  1999-04-01  0:00     ` Andrew Cagney
  1999-04-01  0:00     ` Fernando Nasser
  0 siblings, 2 replies; 3+ messages in thread
From: Andrew Cagney @ 1999-03-16 22:45 UTC (permalink / raw)
  To: Mike Vermeulen, shebs, sanville, gdb-testers, gdb-patches

Andrew Cagney wrote:
> 
> Unless Stan (as head maintainer objects).  I'll rip out PARAMS for all
> these
> offending functions (making them all true ISO-C).

Stan objected :-)  A patch that changes the types follows.

JimB, I've more patches to follow :-)

Using both the attached patch and these patches I was able to
successfuly configure/compile on a hpux 10.20 system vis:

	$  export CC="/opt/ansic/bin/cc -Ae +DA1.1"
	$  ../gdb-4.18/configure
	$  make
	....

Andrew
diff -r -p gdb-4.17.86/gdb/remote.c gdb-4.17.86.cagney/gdb/remote.c
*** gdb-4.17.86/gdb/remote.c	Wed Feb  3 09:02:03 1999
--- gdb-4.17.86.cagney/gdb/remote.c	Tue Mar 16 21:21:53 1999
*************** static int ishex PARAMS ((int ch, int *v
*** 293,299 ****
  
  static int stubhex PARAMS ((int ch));
  
! static int remote_query PARAMS ((char, char *, char *, int *));
  
  static int hexnumstr PARAMS ((char *, ULONGEST));
  
--- 293,299 ----
  
  static int stubhex PARAMS ((int ch));
  
! static int remote_query PARAMS ((int/*char*/, char *, char *, int *));
  
  static int hexnumstr PARAMS ((char *, ULONGEST));
  
*************** static char *unpack_nibble PARAMS ((char
*** 315,321 ****
  
  static char *pack_nibble PARAMS ((char *buf, int nibble));
  
! static char *pack_hex_byte PARAMS ((char *pkt, unsigned char byte));
  
  static char *unpack_byte PARAMS ((char *buf, int *value));
  
--- 315,321 ----
  
  static char *pack_nibble PARAMS ((char *buf, int nibble));
  
! static char *pack_hex_byte PARAMS ((char *pkt, int/*unsigned char*/ byte));
  
  static char *unpack_byte PARAMS ((char *buf, int *value));
  
*************** pack_nibble (buf, nibble)
*** 693,699 ****
  static char *
  pack_hex_byte (pkt, byte)
       char *pkt;
!      unsigned char byte;
  {
    *pkt++ = hexchars[(byte >> 4) & 0xf];
    *pkt++ = hexchars[(byte & 0xf)];
--- 693,699 ----
  static char *
  pack_hex_byte (pkt, byte)
       char *pkt;
!      int byte;
  {
    *pkt++ = hexchars[(byte >> 4) & 0xf];
    *pkt++ = hexchars[(byte & 0xf)];
*************** the loaded file\n");
*** 3045,3051 ****
  
  static int
  remote_query (query_type, buf, outbuf, bufsiz)
!      char query_type;
       char *buf;
       char *outbuf;
       int *bufsiz;
--- 3045,3051 ----
  
  static int
  remote_query (query_type, buf, outbuf, bufsiz)
!      int query_type;
       char *buf;
       char *outbuf;
       int *bufsiz;
diff -r -p gdb-4.17.86/gdb/target.c gdb-4.17.86.cagney/gdb/target.c
*** gdb-4.17.86/gdb/target.c	Mon Jan 18 16:49:41 1999
--- gdb-4.17.86.cagney/gdb/target.c	Tue Mar 16 21:22:34 1999
*************** debug_to_thread_alive PARAMS ((int));
*** 174,181 ****
  static void
  debug_to_stop PARAMS ((void));
  
! static int
! debug_to_query PARAMS ((char, char *, char *, int *));
  
  /* Pointer to array of target architecture structures; the size of the
     array; the current index into the array; the allocated size of the 
--- 174,180 ----
  static void
  debug_to_stop PARAMS ((void));
  
! static int debug_to_query PARAMS ((int/*char*/, char *, char *, int *));
  
  /* Pointer to array of target architecture structures; the size of the
     array; the current index into the array; the allocated size of the 
*************** cleanup_target (t)
*** 439,445 ****
    de_fault (to_notice_signals,		(void (*) PARAMS((int))) target_ignore);
    de_fault (to_thread_alive,		(int (*) PARAMS((int))) target_ignore);
    de_fault (to_stop,			(void (*) PARAMS((void))) target_ignore);
!   de_fault (to_query,			(int (*) PARAMS((char, char*, char *, int *))) target_ignore);
    de_fault (to_enable_exception_callback,	(struct symtab_and_line * (*) PARAMS((enum exception_event_kind, int))) nosupport_runtime);
    de_fault (to_get_current_exception_event,	(struct exception_event_record * (*) PARAMS((void))) nosupport_runtime);
  
--- 438,444 ----
    de_fault (to_notice_signals,		(void (*) PARAMS((int))) target_ignore);
    de_fault (to_thread_alive,		(int (*) PARAMS((int))) target_ignore);
    de_fault (to_stop,			(void (*) PARAMS((void))) target_ignore);
!   de_fault (to_query,			(int (*) PARAMS((int/*char*/, char*, char *, int *))) target_ignore);
    de_fault (to_enable_exception_callback,	(struct symtab_and_line * (*) PARAMS((enum exception_event_kind, int))) nosupport_runtime);
    de_fault (to_get_current_exception_event,	(struct exception_event_record * (*) PARAMS((void))) nosupport_runtime);
  
*************** debug_to_stop ()
*** 2429,2435 ****
  
  static int
  debug_to_query (type, req, resp, siz)
!   char type;
    char *req;
    char *resp;
    int *siz;
--- 2428,2434 ----
  
  static int
  debug_to_query (type, req, resp, siz)
!   int type;
    char *req;
    char *resp;
    int *siz;
diff -r -p gdb-4.17.86/gdb/target.h gdb-4.17.86.cagney/gdb/target.h
*** gdb-4.17.86/gdb/target.h	Tue Jan 19 09:02:55 1999
--- gdb-4.17.86.cagney/gdb/target.h	Tue Mar 16 21:10:20 1999
*************** struct target_ops
*** 355,361 ****
    void	      (*to_notice_signals) PARAMS ((int pid));
    int	      (*to_thread_alive) PARAMS ((int pid));
    void	      (*to_stop) PARAMS ((void));
!   int 	      (*to_query) PARAMS ((char, char *, char *, int *));
    struct symtab_and_line * (*to_enable_exception_callback) PARAMS ((enum exception_event_kind, int));
    struct exception_event_record * (*to_get_current_exception_event) PARAMS ((void));
    char *      (*to_pid_to_exec_file) PARAMS ((int pid));
--- 355,361 ----
    void	      (*to_notice_signals) PARAMS ((int pid));
    int	      (*to_thread_alive) PARAMS ((int pid));
    void	      (*to_stop) PARAMS ((void));
!   int 	      (*to_query) PARAMS ((int/*char*/, char *, char *, int *));
    struct symtab_and_line * (*to_enable_exception_callback) PARAMS ((enum exception_event_kind, int));
    struct exception_event_record * (*to_get_current_exception_event) PARAMS ((void));
    char *      (*to_pid_to_exec_file) PARAMS ((int pid));
From ac131313@cygnus.com Tue Mar 16 22:45:00 1999
From: Andrew Cagney <ac131313@cygnus.com>
To: gdb-patches@cygnus.com, Jim Blandy <jimb@cygnus.com>
Cc: Mike Vermeulen <mev@hpclhayb.cup.hp.com>
Subject: Fix HPUX sim/Makefile.in compile problem
Date: Tue, 16 Mar 1999 22:45:00 -0000
Message-id: <36EF4F8B.764E93FC@cygnus.com>
X-SW-Source: 1999-03/msg00057.html
Content-length: 1105

Jim,

This is a straight lift of Mike Vermeulen patch to sim/Makefile.in to
fix a make problem.

	Andrew
Sun Mar 14 12:59:28 1999  Mike Vermeulen  <mev@ladybug.cup.hp.com>

	* Makefile.in: Remove continuation character from comment.


*** gdb-4.17.86/sim/Makefile.in	Thu May 28 12:05:30 1998
--- gdb-4.17.86.cagney/sim/Makefile.in	Tue Mar 16 01:03:46 1999
*************** FLAGS_TO_PASS = \
*** 95,101 ****
  	"RUNTESTFLAGS=$(RUNTESTFLAGS)" \
  	"SHELL=$(SHELL)"
  
! #	"RUNTEST=$(RUNTEST)" \
  
  # The use of $$(x_FOR_TARGET) reduces the command line length by not
  # duplicating the lengthy definition.
--- 95,101 ----
  	"RUNTESTFLAGS=$(RUNTESTFLAGS)" \
  	"SHELL=$(SHELL)"
  
! #	"RUNTEST=$(RUNTEST)" 
  
  # The use of $$(x_FOR_TARGET) reduces the command line length by not
  # duplicating the lengthy definition.
*************** TARGET_FLAGS_TO_PASS = \
*** 119,125 ****
  	"MAKEINFO=$(MAKEINFO)" \
  	"RUNTESTFLAGS=$(RUNTESTFLAGS)"
  
! #	"RUNTEST=$(RUNTEST)" \
  
  
  all:
--- 119,125 ----
  	"MAKEINFO=$(MAKEINFO)" \
  	"RUNTESTFLAGS=$(RUNTESTFLAGS)"
  
! #	"RUNTEST=$(RUNTEST)" 
  
  
  all:
From fnasser@cygnus.com Wed Mar 17 07:39:00 1999
From: Fernando Nasser <fnasser@cygnus.com>
To: gdb-patches@cygnus.com
Subject: Re: Fix HPUX compile target.h, target.c and remote.c problems
Date: Wed, 17 Mar 1999 07:39:00 -0000
Message-id: <36EFCD0D.75FE68A6@cygnus.com>
References: <9903142204.AA15471.cygnus.testers.gdb@hpclhayb.cup.hp.com> <36EE1017.55E68457.cygnus.testers.gdb@cygnus.com> <36EF4D83.9B2BB5DC@cygnus.com>
X-SW-Source: 1999-03/msg00059.html
Content-length: 6537

Thank you for fixing this.  Stan is right, I had to do it.


Andrew Cagney wrote:
> 
> Andrew Cagney wrote:
> >
> > Unless Stan (as head maintainer objects).  I'll rip out PARAMS for all
> > these
> > offending functions (making them all true ISO-C).
> 
> Stan objected :-)  A patch that changes the types follows.
> 
> JimB, I've more patches to follow :-)
> 
> Using both the attached patch and these patches I was able to
> successfuly configure/compile on a hpux 10.20 system vis:
> 
>         $  export CC="/opt/ansic/bin/cc -Ae +DA1.1"
>         $  ../gdb-4.18/configure
>         $  make
>         ....
> 
> Andrew
> 
>   ------------------------------------------------------------------------
> diff -r -p gdb-4.17.86/gdb/remote.c gdb-4.17.86.cagney/gdb/remote.c
> *** gdb-4.17.86/gdb/remote.c    Wed Feb  3 09:02:03 1999
> --- gdb-4.17.86.cagney/gdb/remote.c     Tue Mar 16 21:21:53 1999
> *************** static int ishex PARAMS ((int ch, int *v
> *** 293,299 ****
> 
>   static int stubhex PARAMS ((int ch));
> 
> ! static int remote_query PARAMS ((char, char *, char *, int *));
> 
>   static int hexnumstr PARAMS ((char *, ULONGEST));
> 
> --- 293,299 ----
> 
>   static int stubhex PARAMS ((int ch));
> 
> ! static int remote_query PARAMS ((int/*char*/, char *, char *, int *));
> 
>   static int hexnumstr PARAMS ((char *, ULONGEST));
> 
> *************** static char *unpack_nibble PARAMS ((char
> *** 315,321 ****
> 
>   static char *pack_nibble PARAMS ((char *buf, int nibble));
> 
> ! static char *pack_hex_byte PARAMS ((char *pkt, unsigned char byte));
> 
>   static char *unpack_byte PARAMS ((char *buf, int *value));
> 
> --- 315,321 ----
> 
>   static char *pack_nibble PARAMS ((char *buf, int nibble));
> 
> ! static char *pack_hex_byte PARAMS ((char *pkt, int/*unsigned char*/ byte));
> 
>   static char *unpack_byte PARAMS ((char *buf, int *value));
> 
> *************** pack_nibble (buf, nibble)
> *** 693,699 ****
>   static char *
>   pack_hex_byte (pkt, byte)
>        char *pkt;
> !      unsigned char byte;
>   {
>     *pkt++ = hexchars[(byte >> 4) & 0xf];
>     *pkt++ = hexchars[(byte & 0xf)];
> --- 693,699 ----
>   static char *
>   pack_hex_byte (pkt, byte)
>        char *pkt;
> !      int byte;
>   {
>     *pkt++ = hexchars[(byte >> 4) & 0xf];
>     *pkt++ = hexchars[(byte & 0xf)];
> *************** the loaded file\n");
> *** 3045,3051 ****
> 
>   static int
>   remote_query (query_type, buf, outbuf, bufsiz)
> !      char query_type;
>        char *buf;
>        char *outbuf;
>        int *bufsiz;
> --- 3045,3051 ----
> 
>   static int
>   remote_query (query_type, buf, outbuf, bufsiz)
> !      int query_type;
>        char *buf;
>        char *outbuf;
>        int *bufsiz;
> diff -r -p gdb-4.17.86/gdb/target.c gdb-4.17.86.cagney/gdb/target.c
> *** gdb-4.17.86/gdb/target.c    Mon Jan 18 16:49:41 1999
> --- gdb-4.17.86.cagney/gdb/target.c     Tue Mar 16 21:22:34 1999
> *************** debug_to_thread_alive PARAMS ((int));
> *** 174,181 ****
>   static void
>   debug_to_stop PARAMS ((void));
> 
> ! static int
> ! debug_to_query PARAMS ((char, char *, char *, int *));
> 
>   /* Pointer to array of target architecture structures; the size of the
>      array; the current index into the array; the allocated size of the
> --- 174,180 ----
>   static void
>   debug_to_stop PARAMS ((void));
> 
> ! static int debug_to_query PARAMS ((int/*char*/, char *, char *, int *));
> 
>   /* Pointer to array of target architecture structures; the size of the
>      array; the current index into the array; the allocated size of the
> *************** cleanup_target (t)
> *** 439,445 ****
>     de_fault (to_notice_signals,                (void (*) PARAMS((int))) target_ignore);
>     de_fault (to_thread_alive,          (int (*) PARAMS((int))) target_ignore);
>     de_fault (to_stop,                  (void (*) PARAMS((void))) target_ignore);
> !   de_fault (to_query,                 (int (*) PARAMS((char, char*, char *, int *))) target_ignore);
>     de_fault (to_enable_exception_callback,     (struct symtab_and_line * (*) PARAMS((enum exception_event_kind, int))) nosupport_runtime);
>     de_fault (to_get_current_exception_event,   (struct exception_event_record * (*) PARAMS((void))) nosupport_runtime);
> 
> --- 438,444 ----
>     de_fault (to_notice_signals,                (void (*) PARAMS((int))) target_ignore);
>     de_fault (to_thread_alive,          (int (*) PARAMS((int))) target_ignore);
>     de_fault (to_stop,                  (void (*) PARAMS((void))) target_ignore);
> !   de_fault (to_query,                 (int (*) PARAMS((int/*char*/, char*, char *, int *))) target_ignore);
>     de_fault (to_enable_exception_callback,     (struct symtab_and_line * (*) PARAMS((enum exception_event_kind, int))) nosupport_runtime);
>     de_fault (to_get_current_exception_event,   (struct exception_event_record * (*) PARAMS((void))) nosupport_runtime);
> 
> *************** debug_to_stop ()
> *** 2429,2435 ****
> 
>   static int
>   debug_to_query (type, req, resp, siz)
> !   char type;
>     char *req;
>     char *resp;
>     int *siz;
> --- 2428,2434 ----
> 
>   static int
>   debug_to_query (type, req, resp, siz)
> !   int type;
>     char *req;
>     char *resp;
>     int *siz;
> diff -r -p gdb-4.17.86/gdb/target.h gdb-4.17.86.cagney/gdb/target.h
> *** gdb-4.17.86/gdb/target.h    Tue Jan 19 09:02:55 1999
> --- gdb-4.17.86.cagney/gdb/target.h     Tue Mar 16 21:10:20 1999
> *************** struct target_ops
> *** 355,361 ****
>     void              (*to_notice_signals) PARAMS ((int pid));
>     int       (*to_thread_alive) PARAMS ((int pid));
>     void              (*to_stop) PARAMS ((void));
> !   int               (*to_query) PARAMS ((char, char *, char *, int *));
>     struct symtab_and_line * (*to_enable_exception_callback) PARAMS ((enum exception_event_kind, int));
>     struct exception_event_record * (*to_get_current_exception_event) PARAMS ((void));
>     char *      (*to_pid_to_exec_file) PARAMS ((int pid));
> --- 355,361 ----
>     void              (*to_notice_signals) PARAMS ((int pid));
>     int       (*to_thread_alive) PARAMS ((int pid));
>     void              (*to_stop) PARAMS ((void));
> !   int               (*to_query) PARAMS ((int/*char*/, char *, char *, int *));
>     struct symtab_and_line * (*to_enable_exception_callback) PARAMS ((enum exception_event_kind, int));
>     struct exception_event_record * (*to_get_current_exception_event) PARAMS ((void));
>     char *      (*to_pid_to_exec_file) PARAMS ((int pid));


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fix HPUX compile target.h, target.c and remote.c problems
  1999-03-16 22:45   ` Fix HPUX compile target.h, target.c and remote.c problems Andrew Cagney
  1999-04-01  0:00     ` Andrew Cagney
@ 1999-04-01  0:00     ` Fernando Nasser
  1 sibling, 0 replies; 3+ messages in thread
From: Fernando Nasser @ 1999-04-01  0:00 UTC (permalink / raw)
  To: gdb-patches

Thank you for fixing this.  Stan is right, I had to do it.


Andrew Cagney wrote:
> 
> Andrew Cagney wrote:
> >
> > Unless Stan (as head maintainer objects).  I'll rip out PARAMS for all
> > these
> > offending functions (making them all true ISO-C).
> 
> Stan objected :-)  A patch that changes the types follows.
> 
> JimB, I've more patches to follow :-)
> 
> Using both the attached patch and these patches I was able to
> successfuly configure/compile on a hpux 10.20 system vis:
> 
>         $  export CC="/opt/ansic/bin/cc -Ae +DA1.1"
>         $  ../gdb-4.18/configure
>         $  make
>         ....
> 
> Andrew
> 
>   ------------------------------------------------------------------------
> diff -r -p gdb-4.17.86/gdb/remote.c gdb-4.17.86.cagney/gdb/remote.c
> *** gdb-4.17.86/gdb/remote.c    Wed Feb  3 09:02:03 1999
> --- gdb-4.17.86.cagney/gdb/remote.c     Tue Mar 16 21:21:53 1999
> *************** static int ishex PARAMS ((int ch, int *v
> *** 293,299 ****
> 
>   static int stubhex PARAMS ((int ch));
> 
> ! static int remote_query PARAMS ((char, char *, char *, int *));
> 
>   static int hexnumstr PARAMS ((char *, ULONGEST));
> 
> --- 293,299 ----
> 
>   static int stubhex PARAMS ((int ch));
> 
> ! static int remote_query PARAMS ((int/*char*/, char *, char *, int *));
> 
>   static int hexnumstr PARAMS ((char *, ULONGEST));
> 
> *************** static char *unpack_nibble PARAMS ((char
> *** 315,321 ****
> 
>   static char *pack_nibble PARAMS ((char *buf, int nibble));
> 
> ! static char *pack_hex_byte PARAMS ((char *pkt, unsigned char byte));
> 
>   static char *unpack_byte PARAMS ((char *buf, int *value));
> 
> --- 315,321 ----
> 
>   static char *pack_nibble PARAMS ((char *buf, int nibble));
> 
> ! static char *pack_hex_byte PARAMS ((char *pkt, int/*unsigned char*/ byte));
> 
>   static char *unpack_byte PARAMS ((char *buf, int *value));
> 
> *************** pack_nibble (buf, nibble)
> *** 693,699 ****
>   static char *
>   pack_hex_byte (pkt, byte)
>        char *pkt;
> !      unsigned char byte;
>   {
>     *pkt++ = hexchars[(byte >> 4) & 0xf];
>     *pkt++ = hexchars[(byte & 0xf)];
> --- 693,699 ----
>   static char *
>   pack_hex_byte (pkt, byte)
>        char *pkt;
> !      int byte;
>   {
>     *pkt++ = hexchars[(byte >> 4) & 0xf];
>     *pkt++ = hexchars[(byte & 0xf)];
> *************** the loaded file\n");
> *** 3045,3051 ****
> 
>   static int
>   remote_query (query_type, buf, outbuf, bufsiz)
> !      char query_type;
>        char *buf;
>        char *outbuf;
>        int *bufsiz;
> --- 3045,3051 ----
> 
>   static int
>   remote_query (query_type, buf, outbuf, bufsiz)
> !      int query_type;
>        char *buf;
>        char *outbuf;
>        int *bufsiz;
> diff -r -p gdb-4.17.86/gdb/target.c gdb-4.17.86.cagney/gdb/target.c
> *** gdb-4.17.86/gdb/target.c    Mon Jan 18 16:49:41 1999
> --- gdb-4.17.86.cagney/gdb/target.c     Tue Mar 16 21:22:34 1999
> *************** debug_to_thread_alive PARAMS ((int));
> *** 174,181 ****
>   static void
>   debug_to_stop PARAMS ((void));
> 
> ! static int
> ! debug_to_query PARAMS ((char, char *, char *, int *));
> 
>   /* Pointer to array of target architecture structures; the size of the
>      array; the current index into the array; the allocated size of the
> --- 174,180 ----
>   static void
>   debug_to_stop PARAMS ((void));
> 
> ! static int debug_to_query PARAMS ((int/*char*/, char *, char *, int *));
> 
>   /* Pointer to array of target architecture structures; the size of the
>      array; the current index into the array; the allocated size of the
> *************** cleanup_target (t)
> *** 439,445 ****
>     de_fault (to_notice_signals,                (void (*) PARAMS((int))) target_ignore);
>     de_fault (to_thread_alive,          (int (*) PARAMS((int))) target_ignore);
>     de_fault (to_stop,                  (void (*) PARAMS((void))) target_ignore);
> !   de_fault (to_query,                 (int (*) PARAMS((char, char*, char *, int *))) target_ignore);
>     de_fault (to_enable_exception_callback,     (struct symtab_and_line * (*) PARAMS((enum exception_event_kind, int))) nosupport_runtime);
>     de_fault (to_get_current_exception_event,   (struct exception_event_record * (*) PARAMS((void))) nosupport_runtime);
> 
> --- 438,444 ----
>     de_fault (to_notice_signals,                (void (*) PARAMS((int))) target_ignore);
>     de_fault (to_thread_alive,          (int (*) PARAMS((int))) target_ignore);
>     de_fault (to_stop,                  (void (*) PARAMS((void))) target_ignore);
> !   de_fault (to_query,                 (int (*) PARAMS((int/*char*/, char*, char *, int *))) target_ignore);
>     de_fault (to_enable_exception_callback,     (struct symtab_and_line * (*) PARAMS((enum exception_event_kind, int))) nosupport_runtime);
>     de_fault (to_get_current_exception_event,   (struct exception_event_record * (*) PARAMS((void))) nosupport_runtime);
> 
> *************** debug_to_stop ()
> *** 2429,2435 ****
> 
>   static int
>   debug_to_query (type, req, resp, siz)
> !   char type;
>     char *req;
>     char *resp;
>     int *siz;
> --- 2428,2434 ----
> 
>   static int
>   debug_to_query (type, req, resp, siz)
> !   int type;
>     char *req;
>     char *resp;
>     int *siz;
> diff -r -p gdb-4.17.86/gdb/target.h gdb-4.17.86.cagney/gdb/target.h
> *** gdb-4.17.86/gdb/target.h    Tue Jan 19 09:02:55 1999
> --- gdb-4.17.86.cagney/gdb/target.h     Tue Mar 16 21:10:20 1999
> *************** struct target_ops
> *** 355,361 ****
>     void              (*to_notice_signals) PARAMS ((int pid));
>     int       (*to_thread_alive) PARAMS ((int pid));
>     void              (*to_stop) PARAMS ((void));
> !   int               (*to_query) PARAMS ((char, char *, char *, int *));
>     struct symtab_and_line * (*to_enable_exception_callback) PARAMS ((enum exception_event_kind, int));
>     struct exception_event_record * (*to_get_current_exception_event) PARAMS ((void));
>     char *      (*to_pid_to_exec_file) PARAMS ((int pid));
> --- 355,361 ----
>     void              (*to_notice_signals) PARAMS ((int pid));
>     int       (*to_thread_alive) PARAMS ((int pid));
>     void              (*to_stop) PARAMS ((void));
> !   int               (*to_query) PARAMS ((int/*char*/, char *, char *, int *));
>     struct symtab_and_line * (*to_enable_exception_callback) PARAMS ((enum exception_event_kind, int));
>     struct exception_event_record * (*to_get_current_exception_event) PARAMS ((void));
>     char *      (*to_pid_to_exec_file) PARAMS ((int pid));


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Fix HPUX compile target.h, target.c and remote.c problems
  1999-03-16 22:45   ` Fix HPUX compile target.h, target.c and remote.c problems Andrew Cagney
@ 1999-04-01  0:00     ` Andrew Cagney
  1999-04-01  0:00     ` Fernando Nasser
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Cagney @ 1999-04-01  0:00 UTC (permalink / raw)
  To: Mike Vermeulen, shebs, sanville, gdb-testers, gdb-patches

Andrew Cagney wrote:
> 
> Unless Stan (as head maintainer objects).  I'll rip out PARAMS for all
> these
> offending functions (making them all true ISO-C).

Stan objected :-)  A patch that changes the types follows.

JimB, I've more patches to follow :-)

Using both the attached patch and these patches I was able to
successfuly configure/compile on a hpux 10.20 system vis:

	$  export CC="/opt/ansic/bin/cc -Ae +DA1.1"
	$  ../gdb-4.18/configure
	$  make
	....

Andrew
diff -r -p gdb-4.17.86/gdb/remote.c gdb-4.17.86.cagney/gdb/remote.c
*** gdb-4.17.86/gdb/remote.c	Wed Feb  3 09:02:03 1999
--- gdb-4.17.86.cagney/gdb/remote.c	Tue Mar 16 21:21:53 1999
*************** static int ishex PARAMS ((int ch, int *v
*** 293,299 ****
  
  static int stubhex PARAMS ((int ch));
  
! static int remote_query PARAMS ((char, char *, char *, int *));
  
  static int hexnumstr PARAMS ((char *, ULONGEST));
  
--- 293,299 ----
  
  static int stubhex PARAMS ((int ch));
  
! static int remote_query PARAMS ((int/*char*/, char *, char *, int *));
  
  static int hexnumstr PARAMS ((char *, ULONGEST));
  
*************** static char *unpack_nibble PARAMS ((char
*** 315,321 ****
  
  static char *pack_nibble PARAMS ((char *buf, int nibble));
  
! static char *pack_hex_byte PARAMS ((char *pkt, unsigned char byte));
  
  static char *unpack_byte PARAMS ((char *buf, int *value));
  
--- 315,321 ----
  
  static char *pack_nibble PARAMS ((char *buf, int nibble));
  
! static char *pack_hex_byte PARAMS ((char *pkt, int/*unsigned char*/ byte));
  
  static char *unpack_byte PARAMS ((char *buf, int *value));
  
*************** pack_nibble (buf, nibble)
*** 693,699 ****
  static char *
  pack_hex_byte (pkt, byte)
       char *pkt;
!      unsigned char byte;
  {
    *pkt++ = hexchars[(byte >> 4) & 0xf];
    *pkt++ = hexchars[(byte & 0xf)];
--- 693,699 ----
  static char *
  pack_hex_byte (pkt, byte)
       char *pkt;
!      int byte;
  {
    *pkt++ = hexchars[(byte >> 4) & 0xf];
    *pkt++ = hexchars[(byte & 0xf)];
*************** the loaded file\n");
*** 3045,3051 ****
  
  static int
  remote_query (query_type, buf, outbuf, bufsiz)
!      char query_type;
       char *buf;
       char *outbuf;
       int *bufsiz;
--- 3045,3051 ----
  
  static int
  remote_query (query_type, buf, outbuf, bufsiz)
!      int query_type;
       char *buf;
       char *outbuf;
       int *bufsiz;
diff -r -p gdb-4.17.86/gdb/target.c gdb-4.17.86.cagney/gdb/target.c
*** gdb-4.17.86/gdb/target.c	Mon Jan 18 16:49:41 1999
--- gdb-4.17.86.cagney/gdb/target.c	Tue Mar 16 21:22:34 1999
*************** debug_to_thread_alive PARAMS ((int));
*** 174,181 ****
  static void
  debug_to_stop PARAMS ((void));
  
! static int
! debug_to_query PARAMS ((char, char *, char *, int *));
  
  /* Pointer to array of target architecture structures; the size of the
     array; the current index into the array; the allocated size of the 
--- 174,180 ----
  static void
  debug_to_stop PARAMS ((void));
  
! static int debug_to_query PARAMS ((int/*char*/, char *, char *, int *));
  
  /* Pointer to array of target architecture structures; the size of the
     array; the current index into the array; the allocated size of the 
*************** cleanup_target (t)
*** 439,445 ****
    de_fault (to_notice_signals,		(void (*) PARAMS((int))) target_ignore);
    de_fault (to_thread_alive,		(int (*) PARAMS((int))) target_ignore);
    de_fault (to_stop,			(void (*) PARAMS((void))) target_ignore);
!   de_fault (to_query,			(int (*) PARAMS((char, char*, char *, int *))) target_ignore);
    de_fault (to_enable_exception_callback,	(struct symtab_and_line * (*) PARAMS((enum exception_event_kind, int))) nosupport_runtime);
    de_fault (to_get_current_exception_event,	(struct exception_event_record * (*) PARAMS((void))) nosupport_runtime);
  
--- 438,444 ----
    de_fault (to_notice_signals,		(void (*) PARAMS((int))) target_ignore);
    de_fault (to_thread_alive,		(int (*) PARAMS((int))) target_ignore);
    de_fault (to_stop,			(void (*) PARAMS((void))) target_ignore);
!   de_fault (to_query,			(int (*) PARAMS((int/*char*/, char*, char *, int *))) target_ignore);
    de_fault (to_enable_exception_callback,	(struct symtab_and_line * (*) PARAMS((enum exception_event_kind, int))) nosupport_runtime);
    de_fault (to_get_current_exception_event,	(struct exception_event_record * (*) PARAMS((void))) nosupport_runtime);
  
*************** debug_to_stop ()
*** 2429,2435 ****
  
  static int
  debug_to_query (type, req, resp, siz)
!   char type;
    char *req;
    char *resp;
    int *siz;
--- 2428,2434 ----
  
  static int
  debug_to_query (type, req, resp, siz)
!   int type;
    char *req;
    char *resp;
    int *siz;
diff -r -p gdb-4.17.86/gdb/target.h gdb-4.17.86.cagney/gdb/target.h
*** gdb-4.17.86/gdb/target.h	Tue Jan 19 09:02:55 1999
--- gdb-4.17.86.cagney/gdb/target.h	Tue Mar 16 21:10:20 1999
*************** struct target_ops
*** 355,361 ****
    void	      (*to_notice_signals) PARAMS ((int pid));
    int	      (*to_thread_alive) PARAMS ((int pid));
    void	      (*to_stop) PARAMS ((void));
!   int 	      (*to_query) PARAMS ((char, char *, char *, int *));
    struct symtab_and_line * (*to_enable_exception_callback) PARAMS ((enum exception_event_kind, int));
    struct exception_event_record * (*to_get_current_exception_event) PARAMS ((void));
    char *      (*to_pid_to_exec_file) PARAMS ((int pid));
--- 355,361 ----
    void	      (*to_notice_signals) PARAMS ((int pid));
    int	      (*to_thread_alive) PARAMS ((int pid));
    void	      (*to_stop) PARAMS ((void));
!   int 	      (*to_query) PARAMS ((int/*char*/, char *, char *, int *));
    struct symtab_and_line * (*to_enable_exception_callback) PARAMS ((enum exception_event_kind, int));
    struct exception_event_record * (*to_get_current_exception_event) PARAMS ((void));
    char *      (*to_pid_to_exec_file) PARAMS ((int pid));
From shebs@cygnus.com Thu Apr 01 00:00:00 1999
From: Stan Shebs <shebs@cygnus.com>
To: schwab@issan.informatik.uni-dortmund.de
Cc: gdb-patches@cygnus.com
Subject: Re: gdb.base/solib_threshold.exp is useless
Date: Thu, 01 Apr 1999 00:00:00 -0000
Message-id: <xdsocrrv3p.fsf@andros.cygnus.com>
References: <vyz679v8xzh.fsf.cygnus.patches.gdb@issan.cs.uni-dortmund.de>
X-SW-Source: 1999-q1/msg00033.html
Content-length: 314

schwab@issan.informatik.uni-dortmund.de (Andreas Schwab) writes:

> The tests in gdb.base/solib_threshold.exp are completely useless on
> anything but hppa-hpux.  It should probably be moved to gdb.hp.

Well, after looking at the test itself a bit, I understood your
rationale.  It's in gdb.hp now.

								Stan


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-04-01  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <9903142204.AA15471.cygnus.testers.gdb@hpclhayb.cup.hp.com>
     [not found] ` <36EE1017.55E68457.cygnus.testers.gdb@cygnus.com>
1999-03-16 22:45   ` Fix HPUX compile target.h, target.c and remote.c problems Andrew Cagney
1999-04-01  0:00     ` Andrew Cagney
1999-04-01  0:00     ` Fernando Nasser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox