This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

pending/1390: [RFA] info float for SH


>Number:         1390
>Category:       pending
>Synopsis:       [RFA] info float for SH
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   unknown
>Arrival-Date:   Mon Sep 22 07:18:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 This is a multi-part message in MIME format.
 --------------080003040707020505000303
 Content-Type: text/plain; charset=us-ascii; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Elena,
 
 This change is needed because the double registers are all even numbered:
 dr0, dr2, dr4... rather than dr0, dr1, dr2...
 
 Michael
 
 
 
 --------------080003040707020505000303
 Content-Type: text/plain;
  name="dr2"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="dr2"
 
 2003-07-29  Michael Snyder  <msnyder@redhat.com>
 
 	* sh-tdep.c (do_dr_register_info): Double regs are all even-numbered.
 
 Index: sh-tdep.c
 ===================================================================
 RCS file: /cvs/src/src/gdb/sh-tdep.c,v
 retrieving revision 1.134
 diff -p -r1.134 sh-tdep.c
 *** sh-tdep.c	16 Jul 2003 09:45:56 -0000	1.134
 --- sh-tdep.c	29 Jul 2003 22:19:53 -0000
 *************** do_dr_register_info (struct gdbarch *gdb
 *** 3877,3884 ****
   {
     int first_fp_reg_num = dr_reg_base_num (dr_regnum);
   
 !   fprintf_filtered (file, "dr%d\t0x%08x%08x\n", 
 ! 		    dr_regnum - gdbarch_tdep (gdbarch)->DR0_REGNUM, 
   		    (int) read_register (first_fp_reg_num),
   		    (int) read_register (first_fp_reg_num + 1));
   }
 --- 3877,3884 ----
   {
     int first_fp_reg_num = dr_reg_base_num (dr_regnum);
   
 !   fprintf_filtered (file, "dr%d\t0x%08x%08x\n",
 ! 		    (dr_regnum - gdbarch_tdep (gdbarch)->DR0_REGNUM) * 2,
   		    (int) read_register (first_fp_reg_num),
   		    (int) read_register (first_fp_reg_num + 1));
   }
 
 --------------080003040707020505000303--
 
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]