[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: |
Sun, 18 Oct 2020 21:35:31 +0300 |
> From: William Xu <william.xwl@gmail.com>
> Date: Sun, 18 Oct 2020 20:18:22 +0200
>
> >> (gdb) r
> >> Starting program: /test/a.out
> >> /dev/ttys002: No such file or directory.
> >
> > This is not, but the error message seems to come from a.out, not from
> > GDB. So I think you should review the program's code and see why it
> > fails that way.
>
> Hmm, I saw similar error in my original executable, in the created test
> program, it only prints a string:
The error message could come from some library function.
> Also as I mentioned, if I run the gdbWrapper directly outside emacs, on
> the terminal app (i'm running Terminal on macOS), there is no problem
> seen at all.
Of course: when the program is run from GDB under Emacs, the standard
output and standard input of the program are connected to a PTY
(pseudo-terminal), not to a real console device. So it is a small
wonder that the behavior is different.
> I think it is more likely something wrong inside emacs's
> gdb mode.
Maybe so, but I don't see what would cause this in gdb mode.
- 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 <=
- 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, 2020/10/21
- 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