This is the mail archive of the gdb@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: "set edit off" breaks MI


On Mon, Jan 30, 2006 at 12:00:10PM +0300, Vladimir Prus wrote:
> 
> Hi, 
> it looks the the "set edit off" command breaks MI completely, as the
> following session illustrates
> 
>         ghost@zigzag:/tmp$ gdb a.out --i=mi2
>         ~"GNU gdb 6.4-debian\n"
>         [snip]
>         (gdb)
>         set edit off
>         &"set edit off\n"
>         ^done
>         (gdb)
>         set print static-members off
>         [nothing printed at all]
> 
> After the last command, gdb does not print anything at all. 
> 
> I suspect that "set edit off" is useless in MI anyway and run into the
> problem only when portring existing code, but maybe the issue should be at
> least filed in issue tracker?

set edit
&"set edit\n"
^done
(gdb) 
set print
readline: readline_callback_read_char() called with no handler!
zsh: abort (core dumped)  gdb -i=mi

Yes, set edit is definitely broken for MI; could you file this
in GNATS, since no one has taken a look at it?  I imagine that
fixing this may require untangling a bit of the interpreters
mechanism.

-- 
Daniel Jacobowitz
CodeSourcery


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