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]: Fix target_xfer_memory_partial() mode failure return value


I'll be checking in the enclosed change.  All it does it return
failure (-1) when the memory access mode mode doesn't allow the
requested transfer.  Not a big deal, but I wanted to get it out
of the way...

        --jtc

2001-01-25  J.T. Conklin  <jtc@redback.com>

	* target.c (target_xfer_memory_partial): Return -1 on failure due
 	to invalid access mode attribute.

Index: target.c
===================================================================
RCS file: /cvs/src/src/gdb/target.c,v
retrieving revision 1.18
diff -c -r1.18 target.c
*** target.c	2001/01/23 22:48:56	1.18
--- target.c	2001/01/26 02:25:30
***************
*** 991,997 ****
        if (write_p)
  	{
  	  *err = EIO;
! 	  return 0;
  	}
        break;
  
--- 991,997 ----
        if (write_p)
  	{
  	  *err = EIO;
! 	  return -1;
  	}
        break;
  
***************
*** 999,1005 ****
        if (write_p)
  	{
  	  *err = EIO;
! 	  return 0;
  	}
        break;
      }
--- 999,1005 ----
        if (write_p)
  	{
  	  *err = EIO;
! 	  return -1;
  	}
        break;
      }


-- 
J.T. Conklin
RedBack Networks

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