On Sat, Jan 12, 2008 at 01:56:39PM -0600, Vadtec wrote:
Daniel Jacobowitz wrote:
On Sat, Jan 12, 2008 at 12:49:04PM -0600, Vadtec wrote:
I am running on CentOS 5 (RHEL offshoot). I need to be able to back
trace cores from a FreeBSD box. How can I compile the FreeBSD ELF OS
ABI into my gdb so that I can do it on my CentOS box?
Use --target. You'll also need to copy libraries from the FreeBSD
system and use "set sysroot".
Ok, I am new to this. what do I provide to --target? --target=FreeBSD ?
And what libraries will i need to copy from the fBSD system? What is the
purpose of set sysroot in this case? Where do I use it? Inside gdb? On
the shell?
Thanks for the reply, I just need some more info to go on. I've never
tried a cross system core back trace, so this is all new to me.
Pretty much all of this is covered in the GDB manual. If you run GDB
on the FreeBSD system its startup message will probably tell you what
target to use.