From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29741 invoked by alias); 25 Aug 2004 16:21:53 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 29731 invoked from network); 25 Aug 2004 16:21:51 -0000 Received: from unknown (HELO violeta.inti.gov.ar) (200.10.161.35) by sourceware.org with SMTP; 25 Aug 2004 16:21:51 -0000 Received: from liam.inti.gov.ar ([200.10.161.17]) by violeta.inti.gov.ar with smtp (Exim 4.40) id 1C00X0-0001Mr-PV for gdb-patches@sources.redhat.com; Wed, 25 Aug 2004 13:21:50 -0300 Received: from inti.gov.ar ([200.10.161.124]) by liam.inti.gov.ar (SAVSMTP 3.1.0.29) with SMTP id M2004082513215001139 for ; Wed, 25 Aug 2004 13:21:50 -0300 Message-ID: <412CBC9F.2050201@inti.gov.ar> Date: Wed, 25 Aug 2004 16:21:00 -0000 From: Salvador Eduardo Tropea User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [RFC] Fix bug in MI -data-list-register-values, PSEUDO_REGS ignored Content-Type: multipart/mixed; boundary="------------070902060603010403020204" X-SW-Source: 2004-08/txt/msg00696.txt.bz2 This is a multi-part message in MIME format. --------------070902060603010403020204 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-length: 1056 Hi! That=B4s the first time a send a patch here, sorry if I=B4m doing anything= =20 wrong. Problem: -data-list-register-values gives an error about invalid=20 register number for some registers reported by -data-list-register-names. Solution: The real problem is that mi_cmd_data_list_register_names=20 computes "numregs =3D NUM_REGS + NUM_PSEUDO_REGS" but=20 mi_cmd_data_list_register_values computes "numregs =3D NUM_REGS". So the=20 solution is to also compute the pseudo registers. The patch is trivial and is attached. I thing the Changelog entry should be something like: 2004-08-25 Salvador E. Tropea * mi/mi-main.c (mi_cmd_data_list_register_values): Fixed wrong register number computation. --=20 Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: set@computer.org set@ieee.org=20 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 --------------070902060603010403020204 Content-Type: text/plain; name="-data-list-register-values.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="-data-list-register-values.patch" Content-length: 532 Index: gdb/mi/mi-main.c =================================================================== RCS file: /cvs/src/src/gdb/mi/mi-main.c,v retrieving revision 1.64 diff -u -r1.64 mi-main.c --- gdb/mi/mi-main.c 3 Aug 2004 00:57:27 -0000 1.64 +++ gdb/mi/mi-main.c 25 Aug 2004 14:12:50 -0000 @@ -423,7 +423,7 @@ case, some entries of REGISTER_NAME will change depending upon the particular processor being debugged. */ - numregs = NUM_REGS; + numregs = NUM_REGS + NUM_PSEUDO_REGS; if (argc == 0) { --------------070902060603010403020204--