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