This is the mail archive of the gdb-patches@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]

PATCH ARM set up a few more default values



Attached patch initializes the TARGET_CHAR_SIGNED and CALL_DUMMY_LENGTH 
gdbarch variables.

2002-02-19  Richard Earnshaw  <rearnsha@arm.com>

	* arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
	Initialize CALL_DUMMY_LENGTH.


Index: arm-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/arm-tdep.c,v
retrieving revision 1.46
diff -p -r1.46 arm-tdep.c
*** arm-tdep.c	2002/02/18 16:42:53	1.46
--- arm-tdep.c	2002/02/19 13:57:03
*************** static LONGEST arm_call_dummy_words[] =
*** 1267,1276 ****
     breakpoint to the proper address in the call dummy, so that
     `finish' after a stop in a call dummy works.
  
!    XXX Tweeking current_gdbarch is not an optimal solution, but the
!    call to arm_fix_call_dummy is immediately followed by a call to
!    run_stack_dummy, which is the only function where
!    call_dummy_breakpoint_offset is actually used.  */
  
  
  static void
--- 1267,1276 ----
     breakpoint to the proper address in the call dummy, so that
     `finish' after a stop in a call dummy works.
  
!    FIXME rearnsha 2002-02018: Tweeking current_gdbarch is not an
!    optimal solution, but the call to arm_fix_call_dummy is immediately
!    followed by a call to run_stack_dummy, which is the only function
!    where call_dummy_breakpoint_offset is actually used.  */
  
  
  static void
*************** gdb_print_insn_arm (bfd_vma memaddr, dis
*** 2078,2085 ****
     abi-specific code during establishment of the gdbarch vector.  */
  
  
! /* XXX for now we allow a non-multi-arch gdb to override these
!    definitions.  */
  #ifndef ARM_LE_BREAKPOINT
  #define ARM_LE_BREAKPOINT {0xFE,0xDE,0xFF,0xE7}
  #endif
--- 2078,2085 ----
     abi-specific code during establishment of the gdbarch vector.  */
  
  
! /* NOTE rearnsha 2002-02-18: for now we allow a non-multi-arch gdb to
!    override these definitions.  */
  #ifndef ARM_LE_BREAKPOINT
  #define ARM_LE_BREAKPOINT {0xFE,0xDE,0xFF,0xE7}
  #endif
*************** arm_gdbarch_init (struct gdbarch_info in
*** 2796,2801 ****
--- 2796,2804 ----
  		      "arm_gdbarch_init: bad byte order for float format");
      }
  
+   /* On ARM targets char defaults to unsigned.  */
+   set_gdbarch_char_signed (gdbarch, 0);
+ 
    /* This should be low enough for everything.  */
    tdep->lowest_pc = 0x20;
    tdep->jb_pc = -1; /* Longjump support not enabled by default.  */
*************** arm_gdbarch_init (struct gdbarch_info in
*** 2814,2819 ****
--- 2817,2823 ----
    set_gdbarch_call_dummy_words (gdbarch, arm_call_dummy_words);
    set_gdbarch_sizeof_call_dummy_words (gdbarch, sizeof (arm_call_dummy_words));
    set_gdbarch_call_dummy_start_offset (gdbarch, 0);
+   set_gdbarch_call_dummy_length (gdbarch, 0);
  
    set_gdbarch_fix_call_dummy (gdbarch, arm_fix_call_dummy);
  

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