From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28074 invoked by alias); 13 Mar 2004 14:52:20 -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 28066 invoked from network); 13 Mar 2004 14:52:20 -0000 Received: from unknown (HELO mallaury.noc.nerim.net) (62.4.17.106) by sources.redhat.com with SMTP; 13 Mar 2004 14:52:20 -0000 Received: from nerim.fr (stcarrez.net1.nerim.net [62.212.108.40]) by mallaury.noc.nerim.net (Postfix) with ESMTP id A2C6362D8C; Sat, 13 Mar 2004 15:52:17 +0100 (CET) Message-ID: <4053201C.5010005@nerim.fr> Date: Fri, 19 Mar 2004 00:09:00 -0000 From: Stephane Carrez User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [PATCH]: Fix m68hc11_register_name X-Enigmail-Version: 0.76.8.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig4D17FFE4115A28B397C69F65" X-SW-Source: 2004-03/txt/msg00303.txt.bz2 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4D17FFE4115A28B397C69F65 Content-Type: multipart/mixed; boundary="------------060302000802000603050109" This is a multi-part message in MIME format. --------------060302000802000603050109 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 395 Hi! This patch fixes register_name on HC11 when it is first called before fetching any register. In that case, it could return null for soft registers but they were defined. (the soft regs are found by looking at the symbol table. Committed on 6_1 and main. Stephane 2004-03-13 Stephane Carrez * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information. --------------060302000802000603050109 Content-Type: text/plain; name="m68hc11-tdep.c.diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="m68hc11-tdep.c.diffs" Content-length: 603 Index: m68hc11-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/m68hc11-tdep.c,v retrieving revision 1.99 diff -u -p -r1.99 m68hc11-tdep.c --- m68hc11-tdep.c 13 Feb 2004 06:09:36 -0000 1.99 +++ m68hc11-tdep.c 13 Mar 2004 14:47:18 -0000 @@ -385,6 +385,8 @@ m68hc11_register_name (int reg_nr) if (reg_nr >= M68HC11_ALL_REGS) return NULL; + m68hc11_initialize_register_info (); + /* If we don't know the address of a soft register, pretend it does not exist. */ if (reg_nr > M68HC11_LAST_HARD_REG && soft_regs[reg_nr].name == 0) --------------060302000802000603050109-- --------------enig4D17FFE4115A28B397C69F65 Content-Type: application/pgp-signature Content-length: 253 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org iD8DBQFAUyAiNyQxO2LzKT0RAsxiAJwPVlwpJI6fcQ++H7N7xTR+YgzPvgCfcblI IpVBNvlw+uARvG4L021l1IQ= =r00S -----END PGP SIGNATURE----- --------------enig4D17FFE4115A28B397C69F65-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28074 invoked by alias); 13 Mar 2004 14:52:20 -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 28066 invoked from network); 13 Mar 2004 14:52:20 -0000 Received: from unknown (HELO mallaury.noc.nerim.net) (62.4.17.106) by sources.redhat.com with SMTP; 13 Mar 2004 14:52:20 -0000 Received: from nerim.fr (stcarrez.net1.nerim.net [62.212.108.40]) by mallaury.noc.nerim.net (Postfix) with ESMTP id A2C6362D8C; Sat, 13 Mar 2004 15:52:17 +0100 (CET) Message-ID: <4053201C.5010005@nerim.fr> Date: Sat, 13 Mar 2004 14:52:00 -0000 From: Stephane Carrez User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [PATCH]: Fix m68hc11_register_name X-Enigmail-Version: 0.76.8.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig4D17FFE4115A28B397C69F65" X-SW-Source: 2004-03.o/txt/msg00303.txt Message-ID: <20040313145200.gWSMubITGd1n0xRQmVhnbQnpZ2ou4Hvo18ibM7dnXpY@z> This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4D17FFE4115A28B397C69F65 Content-Type: multipart/mixed; boundary="------------060302000802000603050109" This is a multi-part message in MIME format. --------------060302000802000603050109 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 395 Hi! This patch fixes register_name on HC11 when it is first called before fetching any register. In that case, it could return null for soft registers but they were defined. (the soft regs are found by looking at the symbol table. Committed on 6_1 and main. Stephane 2004-03-13 Stephane Carrez * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information. --------------060302000802000603050109 Content-Type: text/plain; name="m68hc11-tdep.c.diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="m68hc11-tdep.c.diffs" Content-length: 603 Index: m68hc11-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/m68hc11-tdep.c,v retrieving revision 1.99 diff -u -p -r1.99 m68hc11-tdep.c --- m68hc11-tdep.c 13 Feb 2004 06:09:36 -0000 1.99 +++ m68hc11-tdep.c 13 Mar 2004 14:47:18 -0000 @@ -385,6 +385,8 @@ m68hc11_register_name (int reg_nr) if (reg_nr >= M68HC11_ALL_REGS) return NULL; + m68hc11_initialize_register_info (); + /* If we don't know the address of a soft register, pretend it does not exist. */ if (reg_nr > M68HC11_LAST_HARD_REG && soft_regs[reg_nr].name == 0) --------------060302000802000603050109-- --------------enig4D17FFE4115A28B397C69F65 Content-Type: application/pgp-signature Content-length: 253 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org iD8DBQFAUyAiNyQxO2LzKT0RAsxiAJwPVlwpJI6fcQ++H7N7xTR+YgzPvgCfcblI IpVBNvlw+uARvG4L021l1IQ= =r00S -----END PGP SIGNATURE----- --------------enig4D17FFE4115A28B397C69F65--