This is the mail archive of the insight@sourceware.org mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] gdbtk-cmds.c


target_read_memory_partial has been recently removed from target.c in gdb.
Here's a patch but it might not be the right one (I don't understand the
function arguments, I just tried juggling what was around).

--
Nick                                        *** Emacs Mode for GDB ***     
                                          http://www.inet.net.nz/~nickrob


*** gdbtk-cmds.c	30 Mar 2006 01:49:37 +1200	1.92
--- gdbtk-cmds.c	18 Aug 2006 21:34:55 +1200	
***************
*** 2433,2440 ****
    while (rnum < nbytes)
      {
        int error;
!       int num = target_read_memory_partial (addr + rnum, mbuf + rnum,
! 					    nbytes - rnum, &error);
        if (num <= 0)
  	break;
        rnum += num;
--- 2433,2440 ----
    while (rnum < nbytes)
      {
        int error;
!       int num = target_read (&current_target, TARGET_OBJECT_MEMORY, NULL,
! 			     mbuf + rnum, addr + rnum,  nbytes - rnum);
        if (num <= 0)
  	break;
        rnum += num;


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