Mark Kettenis told me that: > > From: Michal Ludvig > > what must be done to enable reading of AMD64 corefiles in a gdb running > > on i386 with --target=amd64? > > > Not as such. We can't allow public functions with the names > supply_gregset and fill_gregset in *-tdep.c files. Therefore these > functions should be renamed, and supply_gregset and fill_gregset > should be kept in your *-nat.c file. You'll probably want to rewrite > those functions such that they call the new functions in *-tdep.c. OK, I renamed them to x86_64_linux_(supply,fill)_gregset. Where should I put the prototypes? I created a new file x86-64-linux-tdep.h but you may prefer to put them to x86-64-tdep.h or directly to x86-64-linux-nat.c. Comments? Michal Ludvig -- * SuSE CR, s.r.o * mludvig@suse.cz * (+420) 296.545.373 * http://www.suse.cz