Fix typo in program_info

Message ID m31tsna8w9.fsf@sspiff.org
State New, archived
Headers

Commit Message

Doug Evans Aug. 11, 2014, 5:32 a.m. UTC
  Hi.
This patch seems obvious, though I'm going to give it a few days
in case I missed something.  Maybe we should just delete the
additional text, but I don't mind it.

2014-08-10  Doug Evans  <xdje42@gmail.com>

	* infcmd.c (program_info): Fix typo.
  

Comments

Doug Evans Sept. 6, 2014, 3:27 p.m. UTC | #1
Doug Evans <xdje42@gmail.com> writes:
> Hi.
> This patch seems obvious, though I'm going to give it a few days
> in case I missed something.  Maybe we should just delete the
> additional text, but I don't mind it.
>
> 2014-08-10  Doug Evans  <xdje42@gmail.com>
>
> 	* infcmd.c (program_info): Fix typo.

Committed.
  

Patch

diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index bc42cea..2311e6a 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -1852,7 +1852,7 @@  program_info (char *args, int from_tty)
 		       gdb_signal_to_string (tp->suspend.stop_signal));
     }
 
-  if (!from_tty)
+  if (from_tty)
     {
       printf_filtered (_("Type \"info stack\" or \"info "
 			 "registers\" for more information.\n"));