Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Theodore A. Roth" <troth@openavr.org>
To: gdb-patches@sources.redhat.com
Subject: [commit:avr] remove avr_frame_address
Date: Fri, 20 Jun 2003 06:01:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.44.0306192251520.29981-200000@bozoland.mynet> (raw)

[-- Attachment #1: Type: TEXT/PLAIN, Size: 464 bytes --]

Hi,

Committed the attached.

This patch removes avr_frame_address. From my reading of frame-base.c, this 
function was made useless by having the avr use 'struct frame_base'.

As a bonus, this takes care of one more item from the ARI (get_frame_base).

Ted Roth

2003-06-19  Theodore A. Roth  <troth@openavr.org>

	* avr-tdep.c (avr_frame_address): Delete function.
	(avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
	set_gdbarch_frame_args_address.

[-- Attachment #2: Type: TEXT/PLAIN, Size: 1417 bytes --]

2003-06-19  Theodore A. Roth  <troth@openavr.org>

	* avr-tdep.c (avr_frame_address): Delete function.
	(avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
	set_gdbarch_frame_args_address.

Index: avr-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/avr-tdep.c,v
retrieving revision 1.63
diff -u -p -r1.63 avr-tdep.c
--- avr-tdep.c	19 Jun 2003 21:14:59 -0000	1.63
+++ avr-tdep.c	20 Jun 2003 05:42:41 -0000
@@ -817,12 +817,6 @@ avr_skip_prologue (CORE_ADDR pc)
   return prologue_end;
 }
 
-static CORE_ADDR
-avr_frame_address (struct frame_info *fi)
-{
-  return avr_make_saddr (get_frame_base (fi));
-}
-
 /* Not all avr devices support the BREAK insn. Those that don't should treat
    it as a NOP. Thus, it should be ok. Since the avr is currently a remote
    only target, this shouldn't be a problem (I hope). TRoth/2003-05-14  */
@@ -1362,8 +1356,6 @@ avr_gdbarch_init (struct gdbarch_info in
   set_gdbarch_frame_args_skip (gdbarch, 0);
   set_gdbarch_frameless_function_invocation (gdbarch,
                                              frameless_look_for_prologue);
-  set_gdbarch_frame_args_address (gdbarch, avr_frame_address);
-  set_gdbarch_frame_locals_address (gdbarch, avr_frame_address);
 
   frame_unwind_append_predicate (gdbarch, avr_frame_p);
   frame_base_set_default (gdbarch, &avr_frame_base);

                 reply	other threads:[~2003-06-20  6:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=Pine.LNX.4.44.0306192251520.29981-200000@bozoland.mynet \
    --to=troth@openavr.org \
    --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