From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8141 invoked by alias); 6 Oct 2003 16:34:06 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 8133 invoked from network); 6 Oct 2003 16:34:04 -0000 Received: from unknown (HELO hawaii.kealia.com) (209.3.10.89) by sources.redhat.com with SMTP; 6 Oct 2003 16:34:04 -0000 Received: by hawaii.kealia.com (Postfix, from userid 2049) id 130B1CB20; Mon, 6 Oct 2003 09:34:04 -0700 (PDT) To: insight@sources.redhat.com Subject: [patch] REGISTER_RAW_SIZE => DEPRECATED_REGISTER_RAW_SIZE From: David Carlton Date: Mon, 06 Oct 2003 16:34:00 -0000 Message-ID: User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Rational FORTRAN, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-q4/txt/msg00018.txt.bz2 Andrew's latest deprecation missed occurrences in insight. Andrew, can you please test these patches on a tree containing insight? And if the insight people were to get around to making it possible to build GDB in a tree containing insight, even if there are compilation problems on the insight side, that would be greatly appreciated as well. Committed as obvious. David Carlton carlton@kealia.com 2003-10-06 David Carlton * generic/gdbtk-register.c (get_register_size): Replace REGISTER_RAW_SIZE by DEPRECATED_REGISTER_RAW_SIZE. (get_register, register_changed_p): Ditto. Index: gdbtk-register.c =================================================================== RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-register.c,v retrieving revision 1.21 diff -u -p -r1.21 gdbtk-register.c --- gdbtk-register.c 30 Sep 2003 23:10:55 -0000 1.21 +++ gdbtk-register.c 6 Oct 2003 16:30:05 -0000 @@ -202,7 +202,8 @@ static void get_register_size (int regnum, void *arg) { Tcl_ListObjAppendElement (gdbtk_interp, result_ptr->obj_ptr, - Tcl_NewIntObj (REGISTER_RAW_SIZE (regnum))); + Tcl_NewIntObj (DEPRECATED_REGISTER_RAW_SIZE + (regnum))); } /* returns a list of valid types for a register */ @@ -321,10 +322,10 @@ get_register (int regnum, void *arg) strcpy (buf, "0x"); ptr = buf + 2; - for (j = 0; j < REGISTER_RAW_SIZE (regnum); j++) + for (j = 0; j < DEPRECATED_REGISTER_RAW_SIZE (regnum); j++) { int idx = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? j - : REGISTER_RAW_SIZE (regnum) - 1 - j; + : DEPRECATED_REGISTER_RAW_SIZE (regnum) - 1 - j; sprintf (ptr, "%02x", (unsigned char) raw_buffer[idx]); ptr += 2; } @@ -447,13 +448,13 @@ register_changed_p (int regnum, void *ar return; if (memcmp (&old_regs[regnum * MAX_REGISTER_SIZE], raw_buffer, - REGISTER_RAW_SIZE (regnum)) == 0) + DEPRECATED_REGISTER_RAW_SIZE (regnum)) == 0) return; /* Found a changed register. Save new value and return its number. */ memcpy (&old_regs[regnum * MAX_REGISTER_SIZE], raw_buffer, - REGISTER_RAW_SIZE (regnum)); + DEPRECATED_REGISTER_RAW_SIZE (regnum)); Tcl_ListObjAppendElement (NULL, result_ptr->obj_ptr, Tcl_NewIntObj (regnum)); }