On 15/10/09 17:19, Joel Brobecker wrote: > You definitely got the idea, but the implementation does not work > in the case of multi-arch debugging. This is because you are > introducing a global variable. The solution is to rely on the > gdbarch_tdep structure. OK, how about this patch? I've reimplemented it using your ideas. I've tested that sh-linux GDB can read a core file, and I've tested that shnbsd.tdep.c can be built. Andrew