This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: TUI + gdbserver broken?
On Mon, Mar 19, 2007 at 04:58:23PM +0100, Denis PILAT wrote:
> Daniel Jacobowitz wrote:
> >Thanks for all your detective work on this. I'm sorry I apparently
> >broke TUI so badly - I wish we had test coverage.
> About TUI for Solaris, Fred and I have found where the problem comes from, but
> we are not sure about the fix.
> A "new" call to solib_add in solib-svr4.c has been added 2006-10-18 (yes 5
> months ago!).
> This call leads to a problem about the owner of the target_terminal, it seems
> that the TUI tries to write in the terminal without beein owner.
> We tried just to add a call to "target_terminal_ours ()" at the beginning of
> infcmd.c (post_create_inferior), that fixes the problem.
> But I guess it's not the good place to do that.
I don't know. Maybe? It should happen somewhere central, either
central to TUI or central to GDB, so that we have the terminal before
TUI ever attempts to refresh.
post_create_inferior might be the right place.
--
Daniel Jacobowitz
CodeSourcery