Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Maxim Grigoriev <maxim@tensilica.com>
To: Ulrich Weigand <uweigand@de.ibm.com>
Cc: Markus Deuling <deuling@de.ibm.com>,
	  GDB Patches <gdb-patches@sourceware.org>,
	 Joel Brobecker <brobecker@adacore.com>,
	  Daniel Jacobowitz <drow@false.org>,
	 Maxim Grigoriev <maxim@tensilica.com>
Subject: Re: [rfc] [0/8] Get rid of current_gdbarch
Date: Tue, 09 Oct 2007 19:50:00 -0000	[thread overview]
Message-ID: <470BD31F.9040107@hq.tensilica.com> (raw)
In-Reply-To: <200710091822.l99IMjMk017593@d12av02.megacenter.de.ibm.com>

>> I've checked in all of those except:
>>
>> - the xtensa-tdep.c patch (to give Maxim a chance to comment), and

I've tested xtensa-tdep.* patch. It works fine.

Getting rid of defines looks somewhat less elegant. But, I think it's 
been done for a reason.

Please, go ahead and check it in.

Thanks much for doing this.

-- Maxim


Ulrich Weigand wrote:
> Markus Deuling wrote:
>
>   
>> this is the next series of 8 mostly mechnical patches to get rid of of some trivial to replace occurences of current_gdbarch. 
>>     
>
> I've checked in all of those except:
>
> - the xtensa-tdep.c patch (to give Maxim a chance to comment), and
> - the stack.c patch, because of this:
>
> @@ -1854,10 +1856,11 @@ If you continue, the return value that y
>    if (return_value != NULL)
>      {
>        struct type *return_type = value_type (return_value);
> -      gdb_assert (gdbarch_return_value (current_gdbarch, return_type,
> +      gdb_assert (gdbarch_return_value (get_frame_arch (get_current_frame ()),
> +					return_type,
>  					NULL, NULL, NULL)
>  		  == RETURN_VALUE_REGISTER_CONVENTION);
> -      gdbarch_return_value (current_gdbarch, return_type,
> +      gdbarch_return_value (get_frame_arch (get_current_frame ()), return_type,
>  			    get_current_regcache (), NULL /*read*/,
>  			    value_contents (return_value) /*write*/);
>      }
>
> At this point, there's no need to involve get_current_frame.  The
> routine operates on the current regcache, and should simply consult
> its architecture.
>
> Thanks,
> Ulrich
>
>   


  parent reply	other threads:[~2007-10-09 19:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-09 11:39 Markus Deuling
2007-10-09 18:34 ` Ulrich Weigand
2007-10-09 18:45   ` Daniel Jacobowitz
2007-10-09 18:54     ` Ulrich Weigand
2007-10-09 19:50   ` Maxim Grigoriev [this message]
2007-10-09 19:59     ` Ulrich Weigand
2007-10-10  5:14       ` Markus Deuling
2007-10-10  8:09   ` Markus Deuling

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=470BD31F.9040107@hq.tensilica.com \
    --to=maxim@tensilica.com \
    --cc=brobecker@adacore.com \
    --cc=deuling@de.ibm.com \
    --cc=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=uweigand@de.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