This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb - persistent "set" settings


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]