From: Tavis Ormandy <taviso@sdf.lonestar.org>
To: Peng Yu <pengyu.ut@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Why gdb always confirm if I'm quitting when the program is still running?
Date: Sun, 29 Oct 2006 21:18:00 -0000 [thread overview]
Message-ID: <20061029211751.GA19301@sdf.lonestar.org> (raw)
In-Reply-To: <366c6f340610290753g220a046cl5c1ab6b218215e7d@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 754 bytes --]
On Sun, Oct 29, 2006 at 09:53:59AM -0600, Peng Yu wrote:
> (gdb) q
> The program is running. Exit anyway? (y or n) y
to disable all confirmations, use set confirm off, to just disable it
for this command, you could try something like
define q
set confirm off
quit
end
> In the same gdb session, I can use up or down arrow to recall commands.
>
> But once a gdb session is start over, all the history commands are
> gone. I'm wondering if it is possible to recall those commands?
try something like
set history filename ~/.gdb_history
set history save
Thanks, Tavis.
--
-------------------------------------
taviso@sdf.lonestar.org | finger me for my pgp key.
-------------------------------------------------------
[-- Attachment #2: Type: application/pgp-signature, Size: 238 bytes --]
next prev parent reply other threads:[~2006-10-29 21:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-29 15:54 Peng Yu
2006-10-29 20:05 ` Joel Brobecker
2006-10-29 21:18 ` Tavis Ormandy [this message]
2006-10-29 22:15 ` Finding the type of an exception Kulkarni, Mayuresh (IT)
2006-10-29 22:21 ` Daniel Jacobowitz
2006-10-29 22:37 ` Kulkarni, Mayuresh (IT)
2006-10-30 4:18 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061029211751.GA19301@sdf.lonestar.org \
--to=taviso@sdf.lonestar.org \
--cc=gdb@sourceware.org \
--cc=pengyu.ut@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox