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: otadmor
Subject: Re: gdb mode with gdb command from the docker
Date: Sun, 18 Oct 2020 22:00:23 +0300

As gud is great and all, not always you need all of its capabilities.
Does running gdb from shell (M-x shell) works?

On Sun, Oct 18, 2020, 21:49 Yuri Khan <yuri.v.khan@gmail.com> wrote:

> 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]