[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gdb mode with gdb command from the docker
From: |
Eli Zaretskii |
Subject: |
Re: gdb mode with gdb command from the docker |
Date: |
Wed, 21 Oct 2020 19:10:57 +0300 |
> From: William Xu <william.xwl@gmail.com>
> Date: Tue, 20 Oct 2020 21:54:55 +0200
>
> I manage to make it work by disabling the gdb "-inferior-tty-set"
> command in gdb-inferior-io--init-proc.
>
> It seems that the problem is that, process.c::allocate_pty allocates a
> pseudo-terminal for the *host*, I can find the same tty name in /dev on
> the host. It then confuses the gdb command from the docker container.
>
> Is there any reason to call "-inferior-tty-set" commands here? Can we
> simply remove it?
No, this setting is needed to separate the I/O device of the process
being debugged from that of GDB, so that we could redirect I/O of the
debuggee to a dedicated buffer used by "M-x gdb" to show interaction
with the program.
- gdb mode with gdb command from the docker, William Xu, 2020/10/18
- Re: gdb mode with gdb command from the docker, Eli Zaretskii, 2020/10/18
- Re: gdb mode with gdb command from the docker, William Xu, 2020/10/18
- Re: gdb mode with gdb command from the docker, Eli Zaretskii, 2020/10/18
- Re: gdb mode with gdb command from the docker, William Xu, 2020/10/20
- Re: gdb mode with gdb command from the docker,
Eli Zaretskii <=
- Re: gdb mode with gdb command from the docker, William Xu, 2020/10/22
- Re: gdb mode with gdb command from the docker, Eli Zaretskii, 2020/10/22
- Re: gdb mode with gdb command from the docker, William Xu, 2020/10/22
Re: gdb mode with gdb command from the docker, Yuri Khan, 2020/10/18