public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug cli/16122] New: Unify interactivity tests to use input_from_terminal_p
@ 2013-11-05 14:45 mbilal at codesourcery dot com
  2013-11-05 14:46 ` [Bug cli/16122] " mbilal at codesourcery dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: mbilal at codesourcery dot com @ 2013-11-05 14:45 UTC (permalink / raw)
  To: gdb-prs

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.


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

end of thread, other threads:[~2013-11-07 11:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-05 14:45 [Bug cli/16122] New: Unify interactivity tests to use input_from_terminal_p mbilal at codesourcery dot com
2013-11-05 14:46 ` [Bug cli/16122] " mbilal at codesourcery dot com
2013-11-05 14:46 ` mbilal at codesourcery dot com
2013-11-06  7:47 ` cvs-commit at gcc dot gnu.org
2013-11-06  8:04 ` mbilal at codesourcery dot com
2013-11-07 11:01 ` palves at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).