regcache (Re: GDB respin)
Michal Ludvig
mludvig@suse.cz
Mon Feb 10 21:26:00 GMT 2003
Michal Ludvig wrote:
>> I'm about to convert x86-64 target to use regcache, but am not sure
>> what must be done for it. Could someone please briefly explain me what
>> is regcache all about and what must be changed in order to have the
>> target regcache-compilant?
>
> Where previously the code wrote (directly or implicitly) to a global
> buffer, it how is given an explicit object (the regcache).
>
> You can use any *cooked*{read,write}* function you want in regcache.h.
> Typically the transformation is very direct: write_register() ->
> regcache_cooked_write().
>
>> As I was looking to the sources I believe, that only
>> x86_64_store_return_value() and x86_64_extract_return_value() must be
>> modified. Am I right or not?
>
> Per above, yes, I think this is correct. Thanks!
OK, here is the first attempt to use regcache on x86-64 target.
As I run the testsuite on gdb-5.3 it made no difference on the results
and I hope it will improve the mainline a little bit.
Is the patch OK to commit?
Michal Ludvig
--
* SuSE CR, s.r.o * mludvig@suse.cz
* (+420) 296.545.373 * http://www.suse.cz
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: regcache-head-1.diff
URL: <http://sourceware.org/pipermail/gdb/attachments/20030210/ddcb744f/attachment.ksh>
More information about the Gdb
mailing list