From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15453 invoked by alias); 22 Mar 2007 13:20:57 -0000 Received: (qmail 15264 invoked by uid 22791); 22 Mar 2007 13:20:31 -0000 Received: from dmz.mips-uk.com (HELO dmz.mips-uk.com) (194.74.144.194) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 22 Mar 2007 13:20:31 +0000 Received: from internal-mx1 ([192.168.192.240] helo=ukservices1.mips.com) by dmz.mips-uk.com with esmtp (Exim 3.35 #1 (Debian)) id 1HUNDQ-0000TC-00; Thu, 22 Mar 2007 13:20:28 +0000 Received: from perivale.mips.com ([192.168.192.200]) by ukservices1.mips.com with esmtp (Exim 3.36 #1 (Debian)) id 1HUNDD-0003uT-00; Thu, 22 Mar 2007 13:20:15 +0000 Received: from macro (helo=localhost) by perivale.mips.com with local-esmtp (Exim 4.63) (envelope-from ) id 1HUNDD-0006r1-JI; Thu, 22 Mar 2007 13:20:15 +0000 Date: Thu, 22 Mar 2007 13:20:00 -0000 From: "Maciej W. Rozycki" To: gdb-patches@sourceware.org cc: Nigel Stephens , "Maciej W. Rozycki" Subject: remote-mips.c: Update the prototype of mips_xfer_memory() Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MIPS-Technologies-UK-MailScanner: Found to be clean X-MIPS-Technologies-UK-MailScanner-From: macro@mips.com Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00197.txt.bz2 Hello, The deprecated_xfer_memory() member of "struct target_ops" takes "gdb_byte *" as the second argument now. This change updates remote-mips.c accordingly. This change should be obvious, though it cannot be tested with the tree as is, as for whatever reason the file is currently not built in any configuration. I tested it successfully with the "mipsisa32-sde-elf" target with a patch that enables this file to be built, which I will submit later on. 2007-03-22 Nigel Stephens Maciej W. Rozycki * remote-mips.c (mips_xfer_memory): Update prototype. OK to apply? Maciej 12036.diff Index: gdb/src/gdb/remote-mips.c =================================================================== --- gdb.orig/src/gdb/remote-mips.c 2007-02-13 13:51:16.000000000 +0000 +++ gdb/src/gdb/remote-mips.c 2007-02-13 13:51:23.000000000 +0000 @@ -108,7 +108,7 @@ static int mips_store_word (CORE_ADDR addr, unsigned int value, char *old_contents); -static int mips_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, +static int mips_xfer_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len, int write, struct mem_attrib *attrib, struct target_ops *target); @@ -2029,7 +2029,7 @@ static int mask_address_p = 1; static int -mips_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write, +mips_xfer_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len, int write, struct mem_attrib *attrib, struct target_ops *target) { int i;