help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gdb mode with gdb command from the docker


From: Yuri Khan
Subject: Re: gdb mode with gdb command from the docker
Date: Sun, 18 Oct 2020 21:48:58 +0300

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.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]