GDB config script

Geoff geoff at red8.org
Wed Oct 6 02:51:44 BST 2004


Nick Savoiu wrote:
> Hi,
> 
> I would also like to pass extra commands to GDB when it is invoked from
> KDevelop. I would like to pass the following commands before 'run' is
> invoked
> 
> set auto-solib-add 0
> break main

Have you tried adding these things to your .gdbinit file?

> and the following after the breakpoint is hit:
> 
> sharedlibrary <libs.so>
> continue

I'm no expert on the .gdbinit file, so I'm not sure how sophisticated 
you can be with it.  Also, I'm merely guessing that when KDevelop uses 
gdb, it respects the configuration in this init file.

-g

> In the above <libs.so> would change over time. The other things are static.
> 
> This allows me to selectively load symbols which is critical for debugging a
> very large program. I thought 'Program Arguments' under Project->Project
> Options->Debugger would help but it just seems to be a dead entry. It's
> overridden by the same setting in Project->Project Options->Run Options.
> 
> Thanks,
> Nick
> 
> ----- Original Message ----- 
> From: "Timo Steuerwald" <timo.steuerwald at gmx.de>
> To: <kdevelop at kdevelop.org>
> Sent: Friday, October 01, 2004 4:48 PM
> Subject: Re: GDB config script
> 
> 
> Up to now any ideas? In my case it is a local application that I try to
> debug. I think there should be a solution for sure, or not?
> 
> Thanks for your help!
> 
> Bye,
> 
> Timo
> 
> Am 30 Sep 2004 um 22:03 hat Timo Steuerwald geschrieben:
> 
> 
>>Hi all,
>>
>>how can I pass GDB command line arguments to the GDB? - I would like to
>>execute GDB commands from a file (command line switch -x <file_xyz>).
>>
>>Bye,
>>
>>Timo
>>
>>-
>>to unsubscribe from this list send an email to
> 
> kdevelop-request at kdevelop.org with the following body:
> 
>>unsubscribe »your-email-address«
>>
> 
> 
> 
> 
> -
> to unsubscribe from this list send an email to kdevelop-request at kdevelop.org
> with the following body:
> unsubscribe »your-email-address«
> 
> 
> -
> to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
> unsubscribe »your-email-address«

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list