* avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
authorTheodore A. Roth <troth@openavr.org>
Sat, 14 Jun 2003 21:00:46 +0000 (21:00 +0000)
committerTheodore A. Roth <troth@openavr.org>
Sat, 14 Jun 2003 21:00:46 +0000 (21:00 +0000)
(avr_gdbarch_init): Remove avr_call_dummy_words variable.
Don't set deprecated_call_dummy_words.
Remove commented out set_gdbarch_believe_pcc_promotion() call.
Don't set remote_translate_xfer_address.
(avr_io_reg_read_command): Remove commented out debug printf.
Wrap a long line.

gdb/ChangeLog
gdb/avr-tdep.c

index 79578abf2318a6e652e9f0a31dca00b8cb180d59..c23420de3d746559bdfa4ee23aad65c4460070b2 100644 (file)
@@ -1,3 +1,13 @@
+2003-06-14  Theodore A. Roth  <troth@openavr.org>
+
+       * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
+       (avr_gdbarch_init): Remove avr_call_dummy_words variable.
+       Don't set deprecated_call_dummy_words.
+       Remove commented out set_gdbarch_believe_pcc_promotion() call.
+       Don't set remote_translate_xfer_address.
+       (avr_io_reg_read_command): Remove commented out debug printf.
+       Wrap a long line.
+
 2003-06-14  Theodore A. Roth  <troth@openavr.org>
 
        * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
index e9d59960751442ffddf00d1211c731df99c96192..0f8f1d0e20f7e5303271f0f3eb863db59a12b765 100644 (file)
@@ -387,30 +387,6 @@ avr_read_fp (void)
   return (avr_make_saddr (read_register (AVR_FP_REGNUM)));
 }
 
-/* Translate a GDB virtual ADDR/LEN into a format the remote target
-   understands.  Returns number of bytes that can be transfered
-   starting at TARG_ADDR.  Return ZERO if no bytes can be transfered
-   (segmentation fault).
-
-   TRoth/2002-04-08: Could this be used to check for dereferencing an invalid
-   pointer? */
-
-static void
-avr_remote_translate_xfer_address (struct gdbarch *gdbarch,
-                                  struct regcache *regcache,
-                                  CORE_ADDR memaddr, int nr_bytes,
-                                  CORE_ADDR *targ_addr, int *targ_len)
-{
-  long out_addr;
-  long out_len;
-
-  /* FIXME: TRoth: Do nothing for now. Will need to examine memaddr at this
-     point and see if the high bit are set with the masks that we want. */
-
-  *targ_addr = memaddr;
-  *targ_len = nr_bytes;
-}
-
 /* avr_scan_prologue is also used as the
    deprecated_frame_init_saved_regs().
 
@@ -1099,12 +1075,6 @@ avr_breakpoint_from_pc (CORE_ADDR * pcptr, int *lenptr)
 static struct gdbarch *
 avr_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 {
-  /* FIXME: TRoth/2002-02-18: I have no idea if avr_call_dummy_words[] should
-     be bigger or not. Initial testing seems to show that `call my_func()`
-     works and backtrace from a breakpoint within the call looks correct.
-     Admittedly, I haven't tested with more than a very simple program. */
-  static LONGEST avr_call_dummy_words[] = { 0 };
-
   struct gdbarch *gdbarch;
   struct gdbarch_tdep *tdep;
 
@@ -1173,9 +1143,6 @@ avr_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   set_gdbarch_print_insn (gdbarch, print_insn_avr);
 
   set_gdbarch_call_dummy_address (gdbarch, avr_call_dummy_address);
-  set_gdbarch_deprecated_call_dummy_words (gdbarch, avr_call_dummy_words);
-
-/*    set_gdbarch_believe_pcc_promotion (gdbarch, 1); // TRoth: should this be set? */
 
   set_gdbarch_address_to_pointer (gdbarch, avr_address_to_pointer);
   set_gdbarch_pointer_to_address (gdbarch, avr_pointer_to_address);
@@ -1195,8 +1162,7 @@ avr_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   set_gdbarch_breakpoint_from_pc (gdbarch, avr_breakpoint_from_pc);
 
   set_gdbarch_function_start_offset (gdbarch, 0);
-  set_gdbarch_remote_translate_xfer_address (gdbarch,
-                                            avr_remote_translate_xfer_address);
+
   set_gdbarch_frame_args_skip (gdbarch, 0);
   set_gdbarch_frameless_function_invocation (gdbarch, frameless_look_for_prologue);    /* ??? */
   set_gdbarch_deprecated_frame_chain (gdbarch, avr_frame_chain);
@@ -1232,13 +1198,11 @@ avr_io_reg_read_command (char *args, int from_tty)
   unsigned int val;
   int i, j, k, step;
 
-/*    fprintf_unfiltered (gdb_stderr, "DEBUG: avr_io_reg_read_command (\"%s\", %d)\n", */
-/*             args, from_tty); */
-
   if (!current_target.to_query)
     {
       fprintf_unfiltered (gdb_stderr,
-                         "ERR: info io_registers NOT supported by current target\n");
+                         "ERR: info io_registers NOT supported by current "
+                          "target\n");
       return;
     }
 
This page took 0.029679 seconds and 4 git commands to generate.