This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
mi/1654: Textual output from target not contained in target output stream
- From: nicknospam at optonline dot net
- To: gdb-gnats at sources dot redhat dot com
- Date: 17 May 2004 17:25:46 -0000
- Subject: mi/1654: Textual output from target not contained in target output stream
- Reply-to: nicknospam at optonline dot net
>Number: 1654
>Category: mi
>Synopsis: Textual output from target not contained in target output stream
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 17 17:28:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: nicknospam@optonline.net
>Release: gdb 6.0 & 6.1
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
The textual output from a target/inferior is not contained/formatted in a target output stream when using the MI2 interpreter.
Sample program:
#include <stdio.h>
int main()
{
printf("Hello, world.\n");
return(0);
}
>How-To-Repeat:
nick@socrates gdbtest $ gcc -g test.c -o test
nick@socrates gdbtest $ gdb --interpreter mi2
~"GNU gdb 6.1\n"
~"Copyright 2004 Free Software Foundation, Inc.\n"
~"GDB is free software, covered by the GNU General Public License, and you are\n"
~"welcome to change it and/or distribute copies of it under certain conditions.\n"
~"Type \"show copying\" to see the conditions.\n"
~"There is absolutely no warranty for GDB. Type \"show warranty\" for details.\n"
~"This GDB was configured as \"i686-pc-linux-gnu\"."
~"\n"
(gdb)
-file-exec-and-symbols test
~"Using host libthread_db library \"/lib/libthread_db.so.1\".\n"
^done
(gdb)
-break-insert main
^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x08048394",func="main",file="test.c",line="5",times="0"}
(gdb)
-exec-run
^running
(gdb)
*stopped,reason="breakpoint-hit",bkptno="1",thread-id="0",frame={addr="0x08048394",func="main",args=[],file="test.c",line="5"}
(gdb)
-exec-next
^running
(gdb)
Hello, world.
*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x080483a0",func="main",args=[],file="test.c",line="7"}
(gdb)
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: