Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH]: Fix m68hc11_register_name
@ 2004-03-19  0:09 Stephane Carrez
  2004-03-13 14:52 ` Stephane Carrez
  0 siblings, 1 reply; 2+ messages in thread
From: Stephane Carrez @ 2004-03-19  0:09 UTC (permalink / raw)
  To: gdb-patches


[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-13 14:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-19  0:09 [PATCH]: Fix m68hc11_register_name Stephane Carrez
2004-03-13 14:52 ` Stephane Carrez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox