This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
[PATCH] gdbtk-cmds.c
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: insight at sources dot redhat dot com
- Date: Fri, 18 Aug 2006 22:07:47 +1200
- Subject: [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 (¤t_target, TARGET_OBJECT_MEMORY, NULL,
! mbuf + rnum, addr + rnum, nbytes - rnum);
if (num <= 0)
break;
rnum += num;