This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug cli/16122] New: Unify interactivity tests to use input_from_terminal_p
- From: "mbilal at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 05 Nov 2013 14:45:50 +0000
- Subject: [Bug cli/16122] New: Unify interactivity tests to use input_from_terminal_p
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16122
Bug ID: 16122
Summary: Unify interactivity tests to use input_from_terminal_p
Product: gdb
Version: 7.6
Status: NEW
Severity: normal
Priority: P2
Component: cli
Assignee: unassigned at sourceware dot org
Reporter: mbilal at codesourcery dot com
On Mon, 01 Apr 2013 16:15:11 +0200, Pedro Alves wrote on gdb-patches
> We don't add commands to history unless we're interactive debugging:
>
> /* Add line to history if appropriate. */
> if (instream == stdin
> && ISATTY (stdin) && *linebuffer)
> add_history (linebuffer);
+
> Probably, it'd be best to use input_from_terminal_p, which also
> checks for --batch mode, among other things.
--
You are receiving this mail because:
You are on the CC list for the bug.