|
List Info
Thread: gdb OS ABI support
|
|
| gdb OS ABI support |
  United States |
2008-01-12 12:49:04 |
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
|
|
| Re: gdb OS ABI support |
  United States |
2008-01-12 13:43:32 |
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
|
|
| Re: gdb OS ABI support |
  United States |
2008-01-12 13:56:39 |
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
|
|
| Re: gdb OS ABI support |
  United States |
2008-01-12 14:15:56 |
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
|
|
| Re: gdb OS ABI support |
  United States |
2008-01-12 14:23:28 |
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
|
|
| Re: gdb OS ABI support |
  United States |
2008-01-12 14:41:59 |
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
|
|
[1-6]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|