[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gdb mode with gdb command from the docker
From: |
William Xu |
Subject: |
Re: gdb mode with gdb command from the docker |
Date: |
Sun, 18 Oct 2020 20:18:22 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: William Xu <william.xwl@gmail.com>
>> Date: Sun, 18 Oct 2020 17:08:36 +0200
>>
>> Then invoke the gdb with: (gdb "/path/gdbWrapper"). The *gud* buffer
>> can be created successfully. The executable file can be loaded OK,
>> however, it reports some tty error while trying to run the executable:
>>
>> ---------------------------------8<-------------------------------------
>> (gdb) file a.out
>> Load new symbol table from "a.out"? (y or n) [answered Y; input not from
>> terminal]
>
> This is normal.
>
>> Reading symbols from a.out...done.
>> (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:
#include <iostream>
int main()
{
std::cout << "hi" << std::endl;
}
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 . I think it is more likely something wrong inside emacs's
gdb mode. (I tested it also with `emacs -Q', same error)
--
William
- 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 <=
- 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, 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