Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb - persistent "set" settings
@ 2006-07-23 22:43 Richard (sent by Nabble.com)
  2006-07-23 22:55 ` Ashwin Pathmudi
  0 siblings, 1 reply; 5+ messages in thread
From: Richard (sent by Nabble.com) @ 2006-07-23 22:43 UTC (permalink / raw)
  To: gdb



I realise this is probably staring me in the face, but I cant see how to get
gdb to remember its settings : preferably on a per directory basis. Any
help/links appreciated.
-- 
View this message in context: http://www.nabble.com/gdb---persistent-%22set%22-settings-tf1989492.html#a5459833
Sent from the gdb - General forum at Nabble.com.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gdb - persistent "set" settings
  2006-07-23 22:43 gdb - persistent "set" settings Richard (sent by Nabble.com)
@ 2006-07-23 22:55 ` Ashwin Pathmudi
  2006-07-24  8:10   ` Riley
  0 siblings, 1 reply; 5+ messages in thread
From: Ashwin Pathmudi @ 2006-07-23 22:55 UTC (permalink / raw)
  To: Richard; +Cc: gdb

Hi,
 Put in all the commands you need gdb to have executed in a
'.gdbinit' file in that particular directory. gdb executes the commands
in this file before showing you the prompt.


cheers,
Ashwin.

On 7/24/06, Richard (sent by Nabble.com) <lists@nabble.com> wrote:
>
>
> I realise this is probably staring me in the face, but I cant see how to get
> gdb to remember its settings : preferably on a per directory basis. Any
> help/links appreciated.
> --
> View this message in context: http://www.nabble.com/gdb---persistent-%22set%22-settings-tf1989492.html#a5459833
> Sent from the gdb - General forum at Nabble.com.
>
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gdb - persistent "set" settings
  2006-07-23 22:55 ` Ashwin Pathmudi
@ 2006-07-24  8:10   ` Riley
  2006-07-24 16:45     ` Ashwin Pathmudi
  0 siblings, 1 reply; 5+ messages in thread
From: Riley @ 2006-07-24  8:10 UTC (permalink / raw)
  To: Ashwin Pathmudi; +Cc: gdb



"Ashwin Pathmudi" <ashwin.pathmudi@gmail.com> writes:

> Hi,
> Put in all the commands you need gdb to have executed in a
> '.gdbinit' file in that particular directory. gdb executes the commands
> in this file before showing you the prompt.

Thanks. Is it possible to default to gdb doing this for me when I exit
gdb? I see ddd does this for you.

>
>
> cheers,
> Ashwin.
>
> On 7/24/06, Richard (sent by Nabble.com) <lists@nabble.com> wrote:
>>
>>
>> I realise this is probably staring me in the face, but I cant see how to get
>> gdb to remember its settings : preferably on a per directory basis. Any
>> help/links appreciated.
>> --
>> View this message in context: http://www.nabble.com/gdb---persistent-%22set%22-settings-tf1989492.html#a5459833
>> Sent from the gdb - General forum at Nabble.com.
>>
>>
>

-- 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gdb - persistent "set" settings
  2006-07-24  8:10   ` Riley
@ 2006-07-24 16:45     ` Ashwin Pathmudi
  2006-07-25  8:24       ` Kunal Parmar
  0 siblings, 1 reply; 5+ messages in thread
From: Ashwin Pathmudi @ 2006-07-24 16:45 UTC (permalink / raw)
  To: Riley; +Cc: gdb

Hi,
On 7/24/06, Riley <rgrdev@gmail.com> wrote:
>
>
> "Ashwin Pathmudi" <ashwin.pathmudi@gmail.com> writes:
>
> > Hi,
> > Put in all the commands you need gdb to have executed in a
> > '.gdbinit' file in that particular directory. gdb executes the commands
> > in this file before showing you the prompt.
>
> Thanks. Is it possible to default to gdb doing this for me when I exit
> gdb? I see ddd does this for you.
I dont think gdb can do that.

cheers,
Ashwin Pathmudi.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gdb - persistent "set" settings
  2006-07-24 16:45     ` Ashwin Pathmudi
@ 2006-07-25  8:24       ` Kunal Parmar
  0 siblings, 0 replies; 5+ messages in thread
From: Kunal Parmar @ 2006-07-25  8:24 UTC (permalink / raw)
  To: Ashwin Pathmudi; +Cc: Riley, gdb

Hi,

If you use "quit" command to exit gdb, then you could add a hook to that 
command.
You can also define your command to exit gdb.
See here -
http://sources.redhat.com/gdb/current/onlinedocs/gdb_21.html#SEC226

Ashwin Pathmudi wrote:
> Hi,
> On 7/24/06, Riley <rgrdev@gmail.com> wrote:
>>
>>
>> "Ashwin Pathmudi" <ashwin.pathmudi@gmail.com> writes:
>>
>> > Hi,
>> > Put in all the commands you need gdb to have executed in a
>> > '.gdbinit' file in that particular directory. gdb executes the 
>> commands
>> > in this file before showing you the prompt.
>>
>> Thanks. Is it possible to default to gdb doing this for me when I exit
>> gdb? I see ddd does this for you.
> I dont think gdb can do that.
>
> cheers,
> Ashwin Pathmudi.

Cheers,
Kunal Parmar

-- 
Kunal Parmar
Software Developer,
Codito Technologies Pvt. Ltd. (www.codito.com)

Office: +91 20 26051367 ext. 133
Mobile: +91 98230 28171


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-07-25  6:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-23 22:43 gdb - persistent "set" settings Richard (sent by Nabble.com)
2006-07-23 22:55 ` Ashwin Pathmudi
2006-07-24  8:10   ` Riley
2006-07-24 16:45     ` Ashwin Pathmudi
2006-07-25  8:24       ` Kunal Parmar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox