From: Michael Snyder <msnyder@redhat.com>
To: Elena Zannoni <ezannoni@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] sh-tdep.c: delete unneeded function.
Date: Fri, 10 Oct 2003 00:15:00 -0000 [thread overview]
Message-ID: <3F85FA02.7020906@redhat.com> (raw)
In-Reply-To: <16261.46068.56352.920472@localhost.redhat.com>
Elena Zannoni wrote:
> This function is not used for sh, because it is only called for
> targets that have the call dummy location set as ON_STACK. SH uses
> AT_ENTRY_POINT.
>
> elena
>
>
> 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
>
> * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
> (sh_gdbarch_init): Delete function, it's only used for dummy calls
Shouldn't that last be (sh_push_dummy_code):?
> on stack.
>
> Index: sh-tdep.c
> ===================================================================
> RCS file: /cvs/uberbaum/gdb/sh-tdep.c,v
> retrieving revision 1.145
> diff -u -p -r1.145 sh-tdep.c
> --- sh-tdep.c 3 Oct 2003 08:13:37 -0000 1.145
> +++ sh-tdep.c 9 Oct 2003 17:36:22 -0000
> @@ -266,22 +266,6 @@ sh_breakpoint_from_pc (CORE_ADDR *pcptr,
> return breakpoint;
> }
>
> -static CORE_ADDR
> -sh_push_dummy_code (struct gdbarch *gdbarch,
> - CORE_ADDR sp, CORE_ADDR funaddr, int using_gcc,
> - struct value **args, int nargs,
> - struct type *value_type,
> - CORE_ADDR *real_pc, CORE_ADDR *bp_addr)
> -{
> - /* Allocate space sufficient for a breakpoint. */
> - sp = (sp - 2) & ~1;
> - /* Store the address of that breakpoint */
> - *bp_addr = sp;
> - /* sh always starts the call at the callee's entry point. */
> - *real_pc = funaddr;
> - return sp;
> -}
> -
> /* Prologue looks like
> mov.l r14,@-r15
> sts.l pr,@-r15
> @@ -2032,7 +2016,6 @@ sh_gdbarch_init (struct gdbarch_info inf
> set_gdbarch_decr_pc_after_break (gdbarch, 0);
> set_gdbarch_function_start_offset (gdbarch, 0);
>
> - set_gdbarch_push_dummy_code (gdbarch, sh_push_dummy_code);
> set_gdbarch_push_dummy_call (gdbarch, sh_push_dummy_call_nofpu);
>
> set_gdbarch_frame_args_skip (gdbarch, 0);
>
next prev parent reply other threads:[~2003-10-10 0:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-09 22:51 Elena Zannoni
2003-10-10 0:15 ` Michael Snyder [this message]
2003-10-10 1:39 ` Elena Zannoni
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=3F85FA02.7020906@redhat.com \
--to=msnyder@redhat.com \
--cc=ezannoni@redhat.com \
--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