Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Xavier Roirand <roirand@adacore.com>, gdb-patches@sourceware.org
Cc: brobecker@adacore.com
Subject: Re: [RFA v4] (Ada) Fix frame argument printing when using auto language mode
Date: Fri, 23 Feb 2018 17:44:00 -0000	[thread overview]
Message-ID: <978a09f2-9201-a720-8828-14ad97c332bf@redhat.com> (raw)
In-Reply-To: <1519393613-22706-1-git-send-email-roirand@adacore.com>

On 02/23/2018 01:46 PM, Xavier Roirand wrote:

> diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c
> index a486919..5bfa16d 100644
> --- a/gdb/ada-valprint.c
> +++ b/gdb/ada-valprint.c
> @@ -33,6 +33,8 @@
>  #include "objfiles.h"
>  #include "target-float.h"
>  
> +extern const struct language_defn ada_language_defn;
> +

I think this is no longer needed.

>  static int print_field_values (struct type *, const gdb_byte *,
>  			       int,
>  			       struct ui_file *, int,
> @@ -1208,7 +1210,7 @@ ada_val_print (struct type *type,
>      {
>        ada_val_print_1 (type, embedded_offset, address,
>  		       stream, recurse, val, options,
> -		       current_language);
> +		       language_def (language_ada));

ada_val_print_1 is only ever called here, which means that
the language parameter could be eliminated and the
hardcoding of language_ada pushed further down.
Then ada_val_print_gnat_array is always passed
language_ada too, etc., etc.

Thanks,
Pedro Alves


      reply	other threads:[~2018-02-23 17:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-23 13:47 Xavier Roirand
2018-02-23 17:44 ` Pedro Alves [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=978a09f2-9201-a720-8828-14ad97c332bf@redhat.com \
    --to=palves@redhat.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=roirand@adacore.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