Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Stephane Carrez <stcarrez@nerim.fr>
To: gdb-patches@sources.redhat.com
Subject: [PATCH]: Fix m68hc11_register_name
Date: Fri, 19 Mar 2004 00:09:00 -0000	[thread overview]
Message-ID: <4053201C.5010005@nerim.fr> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 395 bytes --]

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  <stcarrez@nerim.fr>

	* m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.


[-- Attachment #1.2: m68hc11-tdep.c.diffs --]
[-- Type: text/plain, Size: 603 bytes --]

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)

[-- Attachment #2: Type: application/pgp-signature, Size: 253 bytes --]

WARNING: multiple messages have this Message-ID
From: Stephane Carrez <stcarrez@nerim.fr>
To: gdb-patches@sources.redhat.com
Subject: [PATCH]: Fix m68hc11_register_name
Date: Sat, 13 Mar 2004 14:52:00 -0000	[thread overview]
Message-ID: <4053201C.5010005@nerim.fr> (raw)
Message-ID: <20040313145200.gWSMubITGd1n0xRQmVhnbQnpZ2ou4Hvo18ibM7dnXpY@z> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 395 bytes --]

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  <stcarrez@nerim.fr>

	* m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.


[-- Attachment #1.2: m68hc11-tdep.c.diffs --]
[-- Type: text/plain, Size: 603 bytes --]

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)

[-- Attachment #2: Type: application/pgp-signature, Size: 253 bytes --]

             reply	other threads:[~2004-03-13 14:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-19  0:09 Stephane Carrez [this message]
2004-03-13 14:52 ` Stephane Carrez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4053201C.5010005@nerim.fr \
    --to=stcarrez@nerim.fr \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox