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]

PATCH: s390-nat.c: fix arguments to internal_error



2001-11-06  Jim Blandy  <jimb@redhat.com>

	* gdb/s390-nat.c (s390_register_u_addr): Pass proper arguments to
 	internal_error.

Index: gdb/s390-nat.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/s390-nat.c,v
retrieving revision 2.2
diff -c -r2.2 s390-nat.c
*** gdb/s390-nat.c	2001/11/01 21:05:46	2.2
--- gdb/s390-nat.c	2001/11/06 21:20:59
***************
*** 59,70 ****
    else
      {
  #ifdef GDBSERVER
!       error
  #else
!       internal_error
  #endif
- 	("s390_register_u_addr invalid regnum %s %d regnum=%d", __FILE__,
- 	 (int) __LINE__, regnum);
        retval = 0;
      }
    return retval + blockend;
--- 59,71 ----
    else
      {
  #ifdef GDBSERVER
!       error ("s390_register_u_addr invalid regnum %s %d regnum=%d",
!              __FILE__, (int) __LINE__, regnum);
  #else
!       internal_error (__FILE__, __LINE__,
!                       "s390_register_u_addr invalid regnum regnum=%d",
!                       regnum);
  #endif
        retval = 0;
      }
    return retval + blockend;


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