core file - gdb query ?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > core file - gdb query ?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    core file - gdb query ?  
raxitsheth2000@yahoo.co.in


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-22-06 06:39 AM

Hi,

I am developing some c-applications, (compiled with -g ...) after
developing application i am running the application on different host,
(may be same OS or different OS )

Its like i am working on two host one is development (here i can
devlop,debug etc.)
and one on which I will run/test my application (But Can't debug,)

what i want to know is that if any thing goes wrong (not on Development
machine) and program crash and generate coredump, can I use the core
file  to debug on Development Host.

is there anything like it must be same OS or same glibc versions or ...
?


--raxit






[ Post a follow-up to this message ]



    Re: core file - gdb query ?  
Mehturt@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-24-06 12:24 PM


raxitsheth2000@yahoo.co.in wrote:
> is there anything like it must be same OS or same glibc versions or ...
> ?

Yes.. What I do usually I transfer the application and all dependent
libraries from one host to another..






[ Post a follow-up to this message ]



    Re: core file - gdb query ?  
Michel Bardiaux


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-29-06 06:17 PM

On 23 Nov 2006 23:41:11 -0800, "Mehturt@gmail.com" <Mehturt@gmail.com>
wrote:

>
>raxitsheth2000@yahoo.co.in wrote: 
>
>Yes.. What I do usually I transfer the application and all dependent
>libraries from one host to another..

Determining and transferring the libs is relatively easy. But after
that, how do you tell gdb that it has to load the transferred copy?
Simply setting LD_LIBRARY_PATH wont work, since it would direct gdb to
use the copies (which may be all wrong for the local OS) for its own
code too. I'm quite sure there *is* something, a gdb command or an
environment variable, but the gdb doc is so effing damn big...





[ Post a follow-up to this message ]



    Re: core file - gdb query ?  
vasi_trtr@yahoo.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-29-06 06:17 PM


Michel Bardiaux wrote:
> On 23 Nov 2006 23:41:11 -0800, "Mehturt@gmail.com" <Mehturt@gmail.com>
> wrote:
> 
>
> Determining and transferring the libs is relatively easy. But after
> that, how do you tell gdb that it has to load the transferred copy?
> Simply setting LD_LIBRARY_PATH wont work, since it would direct gdb to
> use the copies (which may be all wrong for the local OS) for its own
> code too. I'm quite sure there *is* something, a gdb command or an
> environment variable, but the gdb doc is so effing damn big...

I guess that the gdb variables "solib-search-path" and
"solib-absolute-prefix"  are the ones you are looking for. If the
architectures differ the gdb variable "endian" should be modified.
If it's possible use remote debugging (gdbserver) on the test machine.
More documentation you can find in the info pages.






[ Post a follow-up to this message ]



    Re: core file - gdb query ?  
Michel Bardiaux


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-30-06 12:27 PM

On 29 Nov 2006 10:51:36 -0800, vasi_trtr@yahoo.com wrote:

>
>Michel Bardiaux wrote: 
>
>I guess that the gdb variables "solib-search-path" and
>"solib-absolute-prefix"  are the ones you are looking for. If the
>architectures differ the gdb variable "endian" should be modified.
>If it's possible use remote debugging (gdbserver) on the test machine.
>More documentation you can find in the info pages.

Thanks.

But I'm afraid it is more true to say: more documentation is somewhere
in the info pages! I have found that once you know a jargon term, then
web searches are the best way.  Googling for "gdb shared libraries" is
hopeless, but for "gdb solib-search-path" is very fertile.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:45 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register