This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: "set edit off" breaks MI
- From: Daniel Jacobowitz <drow at false dot org>
- To: Vladimir Prus <ghost at cs dot msu dot su>
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 6 Feb 2006 18:35:47 -0500
- Subject: Re: "set edit off" breaks MI
- References: <drkkiq$co7$1@sea.gmane.org>
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