* gdb OS ABI support
@ 2008-01-12 18:49 Vadtec
2008-01-12 19:43 ` Daniel Jacobowitz
0 siblings, 1 reply; 6+ messages in thread
From: Vadtec @ 2008-01-12 18:49 UTC (permalink / raw)
To: gdb
This GDB was configured as "x86_64-redhat-linux-gnu"...Using host
libthread_db library "/lib64/libthread_db.so.1".
warning: A handler for the OS ABI "FreeBSD ELF" is not built into this
configuration
of GDB. Attempting to continue with the default i386 settings.
warning: "/home/vadtec/nef-dev/ircd.200712190559.core": no core file
handler recognizes format, using default
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?
Vadtec
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: gdb OS ABI support
2008-01-12 18:49 gdb OS ABI support Vadtec
@ 2008-01-12 19:43 ` Daniel Jacobowitz
2008-01-12 19:57 ` Vadtec
0 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2008-01-12 19:43 UTC (permalink / raw)
To: Vadtec; +Cc: gdb
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".
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: gdb OS ABI support
2008-01-12 19:43 ` Daniel Jacobowitz
@ 2008-01-12 19:57 ` Vadtec
2008-01-12 20:16 ` Daniel Jacobowitz
0 siblings, 1 reply; 6+ messages in thread
From: Vadtec @ 2008-01-12 19:57 UTC (permalink / raw)
To: gdb
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.
Vadtec
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: gdb OS ABI support
2008-01-12 19:57 ` Vadtec
@ 2008-01-12 20:16 ` Daniel Jacobowitz
2008-01-12 20:23 ` Vadtec
0 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2008-01-12 20:16 UTC (permalink / raw)
To: Vadtec; +Cc: gdb
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.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: gdb OS ABI support
2008-01-12 20:16 ` Daniel Jacobowitz
@ 2008-01-12 20:23 ` Vadtec
2008-01-12 20:42 ` Daniel Jacobowitz
0 siblings, 1 reply; 6+ messages in thread
From: Vadtec @ 2008-01-12 20:23 UTC (permalink / raw)
To: gdb
Daniel Jacobowitz wrote:
> 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.
>
>
I have read the gdb manual and to my dismay I havent seem to found this
information. I would run it on the fBSD system accept for the fact I
dont have access to it and the person who does is currently on vacation.
If you can point me to where I can find this information, I am sure I
can figure it out. I am just at a dead spot it seems.
Vadtec
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: gdb OS ABI support
2008-01-12 20:23 ` Vadtec
@ 2008-01-12 20:42 ` Daniel Jacobowitz
0 siblings, 0 replies; 6+ messages in thread
From: Daniel Jacobowitz @ 2008-01-12 20:42 UTC (permalink / raw)
To: Vadtec; +Cc: gdb
On Sat, Jan 12, 2008 at 02:23:28PM -0600, Vadtec wrote:
>>> 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?
--target=i386-freebsd should work, but you might need to add an X.Y
version to the end of it.
You will need the binary and the system libraries, because otherwise GDB won't be
able to find symbols. They have to match exactly. And please search
the GDB manual for "set sysroot", and ask a specific question if that
is not clear.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-01-12 20:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-12 18:49 gdb OS ABI support Vadtec
2008-01-12 19:43 ` Daniel Jacobowitz
2008-01-12 19:57 ` Vadtec
2008-01-12 20:16 ` Daniel Jacobowitz
2008-01-12 20:23 ` Vadtec
2008-01-12 20:42 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).