[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: |
Mon, 19 Oct 2020 08:39:08 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) |
Yuri Khan <yuri.v.khan@gmail.com> writes:
> On Sun, 18 Oct 2020 at 18:08, William Xu <william.xwl@gmail.com> wrote:
>
>> I'm trying to use gdb mode with the gdb command from the docker image.
>> So i defined a wrapper of gdb from docker:
>>
>> ---------------------------------8<-------------------------------------
>> #!/bin/sh
>> arg="$@"
>> docker exec -i myproject gdb -i=mi ${arg}
>> ---------------------------------8<-------------------------------------
>>
>> 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:
>
> Does giving the -t option to ‘docker exec’ help in any way? (I did not
> test this; just a hunch because something seems to expect a tty and -t
> causes docker to allocate one.)
I tried that earlier (changed it to: docker exec -it ... ), it seems making the
situation worse, : )
Beside the same error showing up when running it, I also found this new
error at the beginning of the buffer:
Error: you did not specify -i=mi on GDB's command line!
--
William
- Re: gdb mode with gdb command from the docker, (continued)
- 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, 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