public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: "Ulrich Weigand" <Ulrich.Weigand@de.ibm.com>
To: "will schmidt" <will_schmidt@vnet.ibm.com>
Cc: "will schmidt via Gdb-patches" <gdb-patches@sourceware.org>,
	"rogerio" <rogealve@br.ibm.com>, "Tom Tromey" <tom@tromey.com>
Subject: Re: [PATCH, rs6000] [V2] Add ppc64_linux_gcc_target_options method
Date: Mon, 16 Aug 2021 14:12:24 +0200	[thread overview]
Message-ID: <OFE94E359D.D03583E9-ONC1258733.0042F201-C1258733.00430DEB@ibm.com> (raw)
In-Reply-To: <189c8361f9a225002b90cbd9709e2f29650a9960.camel@vnet.ibm.com>



"will schmidt" <will_schmidt@vnet.ibm.com> wrote on 05.08.2021 22:43:02:

> diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
> index 826f0266ed8..30230aa41da 100644
> --- a/gdb/rs6000-tdep.c
> +++ b/gdb/rs6000-tdep.c
> @@ -822,10 +822,18 @@ rs6000_stack_frame_destroyed_p (struct gdbarch
> *gdbarch, CORE_ADDR pc)
>  {
>    return rs6000_in_function_epilogue_frame_p (get_current_frame (),
>                       gdbarch, pc);
>  }
>
> +/* Implement the linux_gcc_target_options method.  */
> +
> +static std::string
> +ppc64_linux_gcc_target_options (struct gdbarch *gdbarch)
> +{
> +  return "";
> +}
> +
>  /* Get the ith function argument for the current function.  */
>  static CORE_ADDR
>  rs6000_fetch_pointer_argument (struct frame_info *frame, int argi,
>                  struct type *type)
>  {
> @@ -7129,10 +7137,14 @@ rs6000_gdbarch_init (struct gdbarch_info
> info, struct gdbarch_list *arches)
>    /* Trampoline.  */
>    set_gdbarch_in_solib_return_trampoline
>      (gdbarch, rs6000_in_solib_return_trampoline);
>    set_gdbarch_skip_trampoline_code (gdbarch,
rs6000_skip_trampoline_code);
>
> +  /* Set GCC target options.  */
> +  if (wordsize == 8)
> +    set_gdbarch_gcc_target_options (gdbarch,
ppc64_linux_gcc_target_options);

Linux-specific gdbarch callbacks should live in ppc-linux-tdep.c
and be installed from ppc_linux_init_abi.   Otherwise this looks OK.

Bye,
Ulrich

      reply	other threads:[~2021-08-16 12:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-27 15:35 [PATCH, rs6000] " will schmidt
2021-07-29  7:16 ` Ulrich Weigand
2021-08-03 18:56   ` will schmidt
2021-07-30 13:52 ` Tom Tromey
2021-08-05 20:43   ` [PATCH, rs6000] [V2] " will schmidt
2021-08-16 12:12     ` Ulrich Weigand [this message]

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=OFE94E359D.D03583E9-ONC1258733.0042F201-C1258733.00430DEB@ibm.com \
    --to=ulrich.weigand@de.ibm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=rogealve@br.ibm.com \
    --cc=tom@tromey.com \
    --cc=will_schmidt@vnet.ibm.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).