This is the mail archive of the gdb@sources.redhat.com 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]

`interpreter mi' with -noasync


The `interpreter mi' command works fine as follows:

nick:{nick}63: gdb -n -ann=2 ~/myprog
GNU gdb 5.3.90_2003-08-22-cvs
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-pc-linux-gnu"...
breakpoints-invalid

^Z^Zframes-invalid


^Z^Zpre-prompt
(gdb) 
^Z^Zprompt
interp mi "sho hei"

^Z^Zpost-prompt
&"sho hei\n"
^done,value="23"
(gdb) 

^Z^Zpre-prompt
(gdb) 
^Z^Zprompt


But when used with -noasync it seems to get a bit confused:


nick:{nick}61: gdb -q -n -ann=2 -noasync ~/myprog

^Z^Zbreakpoints-invalid

^Z^Zframes-invalid

^Z^Zpre-prompt
(gdb) 
^Z^Zprompt
interp mi "sho hei"

^Z^Zpost-prompt
&"sho hei\n"
^done,value="23"
(gdb) 
~"\n\032\032pre-"
~"prompt\n"
(gdb) 
^Z^Zprompt


Is that appropriate behaviour or shall I file a bug report?

Nick


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