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]

Re: gdbserver tcsetpgrp() ??


On Mon, Aug 04, 2003 at 06:35:17PM +0530, Vijay Saha, Noida wrote:
> Hi
> 
> I have ported the gdbserver 5.3 on arm-linux target.
> But as soon as debugging finishes, the target system gets logged out.
> 
> Then I had found that the "tcsetpgrp" in server.c:start_inferior() of
> gdbserver was the culprit.
> After commenting the line "tcsetpgrp (fileno (stderr), signal_pid);" , the
> logout problem got solved !!!
> 
> I have also found that gdb-5.2 was not using this system call !!
> 
> What does this tcsetpgrp  actually doing ..?? (It has something to do with
> foreground processing of terminal ..means..??)
> 
> How much is this necessary for remote debugging...??

Remote debugging will still work, sending control-c to interrupt the
program won't.  Console handling on your target is severely broken if
that call is causing a problem.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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