This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
gdb/mi log stream messages
- From: Xavier de Gaye <xdegaye at gmail dot com>
- To: gdb at sourceware dot org
- Date: Sat, 27 Aug 2011 21:29:07 +0200
- Subject: gdb/mi log stream messages
gdb version: 7.3
In the second gdb/mi test of the following two tests, gdb/mi writes
the "No source file named foo.c.\n" message to the log stream.
The gdb/mi documentation states at section "24.4.2 GDB/MI Stream
Records" that "The log stream contains debugging messages being
produced by GDB's internals.". The above message is not a debugging
message. So, is the gdb/mi documentation wrong, or should this message
be written to the console output stream instead, or am I missing
something else ?
==========
xavier$ ~/src/gdb/gdb-7.3/install/bin/gdb -q -ex "set confirm off"
(gdb) shell echo "main(){}" | gcc -x c -g -
(gdb) file a.out
(gdb) break foo.c:1
No source file named foo.c.
(gdb) quit
xavier$
==========
xavier$ ~/src/gdb/gdb-7.3/install/bin/gdb --interpreter=mi -q -ex "set
confirm off" a.out
=thread-group-added,id="i1"
~"Reading symbols from /home/xavier/tmp/a.out..."
~"done.\n"
(gdb)
-interpreter-exec console "break foo.c:1"
&"No source file named foo.c.\n"
^done
(gdb)
quit
&"quit\n"
xavier$
==========
Xavier