Compiling GDB as a cross-platform debugger?

In my line of work, I frequently get application core files that need looking at. Unfortunately, our software runs on several different platforms and I invariably have to hunt down a machine with the right OS running GDB. Wouldn’t it be easy, thought I, if I could simply compile GDB in such a way that I can run it on my desktop against any core & binary I happen to get!

After much reading, it seems like this is technically feasible, but I keep running into a problem where GDB complains that it can’t read core files “on this machine”. I suspect its because I have left out something critical.

So, now to my question: How can I compile GDB such that it will read core files from other platforms. Say, a core (and binary) from a sparc-solaris system on my i386 linux system? Barring that, are there any good, active sites where I can post this question? I keep running up on old mailing lists.

Thanks,