This is the mail archive of the gdb-prs@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: mi/2398: newline after stream-record


The following reply was made to PR mi/2398; it has been noted by GNATS.

From: Daniel Jacobowitz <drow@false.org>
To: generatorglukoff@gmail.com
Cc: gdb-gnats@sources.redhat.com
Subject: Re: mi/2398: newline after stream-record
Date: Tue, 1 Jan 2008 23:26:14 -0500

 On Wed, Jan 02, 2008 at 03:45:00AM -0000, generatorglukoff@gmail.com wrote:
 > In documentation there is no newline after stream-record field, however gdb put it.
 > For example:
 > 
 > -exec-run
 > ^running
 > (gdb) 
 > &"No executable file specified.\n"
 > &"Use the \"file\" or \"exec-file\" command.\n"
 > ^error,msg="No executable file specified.\nUse the \"file\" or \"exec-file\" command."
 > (gdb) 
 
 "or a quoted C string (which does not contain an implicit newline)."
 
 \n in the string is not an implicit newline, it's an explicit
 newline.  An implicit newline would mean "the end of the string is
 automatically followed by an additional newline that GDB does not
 display".
 
 -- 
 Daniel Jacobowitz
 CodeSourcery


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