This is the mail archive of the gdb-patches@sourceware.cygnus.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]

Re: [Fwd: [Fwd: gdb 20000413 compile problem and strange SEGVproblem]]


Tim Mooney wrote:

> >Could you force the compilation to continue and see if there are any
> >other errors.
> 
> After fixing the pointer comparison problem so the build will continue on
> the alpha, I verified that the build completes on

Thanks, I've committed the attached patch to the gdb-5.0 branch and the
trunk.
 
> The build never even gets that far on
> 
>         mips-sgi-irix6.5

At present the gdb-5.0/TODO file contains:

> GDB doesn't build under IRIX6.4
> 
> Benjamin Gamsa wrote:
> 
> Has anyone successfully built the latest (from cvs) gdb on IRIX6.4 or
> later?  The first problem I hit is that proc-api.c includes
> sys/user.h, which no longer exists under IRIX6.4.  If I comment out
> that include, the next problem I hit is that PIOCGETPR and PIOCGETU
> are no longer defined in IRIX6.4 (presumably related to the
> disappearance of user.h).

so IRIX 6.x is a known problem.  If someone comes up with a simple small
self contained patch in time for gdb-5.0 then it might go in.  I suspect
that getting it sorted in 5.1 is a better option.  This is consistent
with FreeBSD and a few other platforms.

	Andrew
Fri Apr 28 12:21:28 2000  Andrew Cagney  <cagney@b1.cygnus.com>

	From Tim Mooney <mooney@dogbert.cc.ndsu.nodak.edu>:
	* target.c (do_monitor_command): Cast tcomplain to correct
 	function type in comparison.

Index: target.c
===================================================================
RCS file: /cvs/src/src/gdb/target.c,v
retrieving revision 1.5
diff -p -r1.5 target.c
*** target.c	2000/03/28 02:25:14	1.5
--- target.c	2000/04/28 03:05:54
*************** static void
*** 3063,3071 ****
  do_monitor_command (char *cmd,
  		 int from_tty)
  {
!   if ((current_target.to_rcmd == (void*) tcomplain)
        || (current_target.to_rcmd == debug_to_rcmd
! 	  && (debug_target.to_rcmd == (void*) tcomplain)))
      {
        error ("\"monitor\" command not supported by this target.\n");
      }
--- 3063,3073 ----
  do_monitor_command (char *cmd,
  		 int from_tty)
  {
!   if ((current_target.to_rcmd
!        == (void (*) (char *, struct ui_file *)) tcomplain)
        || (current_target.to_rcmd == debug_to_rcmd
! 	  && (debug_target.to_rcmd
! 	      == (void (*) (char *, struct ui_file *)) tcomplain)))
      {
        error ("\"monitor\" command not supported by this target.\n");
      }

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