From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21462 invoked by alias); 29 Apr 2006 01:20:15 -0000 Received: (qmail 21448 invoked by uid 22791); 29 Apr 2006 01:20:14 -0000 X-Spam-Check-By: sourceware.org Received: from intranet.codesourcery.com (HELO sethra.codesourcery.com) (65.74.133.6) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 29 Apr 2006 01:20:12 +0000 Received: from sethra.codesourcery.com (localhost.localdomain [127.0.0.1]) by sethra.codesourcery.com (8.12.11.20060308/8.12.11) with ESMTP id k3T1JwQb017119; Fri, 28 Apr 2006 18:19:58 -0700 Received: (from mitchell@localhost) by sethra.codesourcery.com (8.12.11.20060308/8.12.11/Submit) id k3T1Jwjm017061; Fri, 28 Apr 2006 18:19:58 -0700 Date: Sat, 29 Apr 2006 01:20:00 -0000 Message-Id: <200604290119.k3T1Jwjm017061@sethra.codesourcery.com> From: Mark Mitchell To: gdb-patches@sources.redhat.com Cc: kevinb@redhat.com Subject: PATCH: Morpho Technologies register patch Reply-to: mark@codesourcery.com Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00382.txt.bz2 I noticed that in MI mode, which the Morpho patches previously posted, I wasn't seeing all of the registers with -data-list-register-names. The problem was that we had hard-coded the last register number into mt_register_name; this change updates that to use the enumeral that actually corresponds to the last register number, rather than just using the register that happens to be last. I've now got three patches outstanding: http://sources.redhat.com/ml/gdb-patches/2006-04/msg00141.html http://sources.redhat.com/ml/gdb-patches/2006-04/msg00251.html and this one. Kevin, I see that you're listed as the maintainer for this port, so I've CC'd you on this mail, in the hopes that you might have a spare minute to look at the patches. Thanks, -- Mark Mitchell CodeSourcery mark@codesourcery.com (650) 331-3385 x713 2006-04-28 Mark Mitchell * gdb/mt-tdep.c (mt_register_name): Correct out-of-range logic to include additional registers. Index: gdb/mt-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/mt-tdep.c,v retrieving revision 1.4.2.2 diff -c -5 -p -r1.4.2.2 mt-tdep.c *** gdb/mt-tdep.c 19 Apr 2006 04:53:13 -0000 1.4.2.2 --- gdb/mt-tdep.c 29 Apr 2006 00:34:08 -0000 *************** mt_register_name (int regnum) *** 183,193 **** dim_1 = ((regnum / MT_COPRO_PSEUDOREG_REGS / MT_COPRO_PSEUDOREG_DIM_2) % MT_COPRO_PSEUDOREG_DIM_1); if (index == MT_COPRO_PSEUDOREG_MAC_REGNUM) stub = register_names[MT_MAC_PSEUDOREG_REGNUM]; ! else if (index > MT_QCHANNEL_REGNUM - MT_CPR0_REGNUM) stub = ""; else stub = register_names[index + MT_CPR0_REGNUM]; if (!*stub) { --- 183,193 ---- dim_1 = ((regnum / MT_COPRO_PSEUDOREG_REGS / MT_COPRO_PSEUDOREG_DIM_2) % MT_COPRO_PSEUDOREG_DIM_1); if (index == MT_COPRO_PSEUDOREG_MAC_REGNUM) stub = register_names[MT_MAC_PSEUDOREG_REGNUM]; ! else if (index >= MT_NUM_REGS - MT_CPR0_REGNUM) stub = ""; else stub = register_names[index + MT_CPR0_REGNUM]; if (!*stub) {