gdb - persistent "set" settings

Kunal Parmar kunal.parmar@codito.com
Tue Jul 25 08:24:00 GMT 2006


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



More information about the Gdb mailing list