From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: gdb mode with gdb command from the docker Date: Sun, 18 Oct 2020 21:48:58 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20755"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: William Xu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 18 20:50:06 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kUDks-0005Ks-EC for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 18 Oct 2020 20:50:06 +0200 Original-Received: from localhost ([::1]:47830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUDkr-000894-Ey for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 18 Oct 2020 14:50:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUDk1-00088n-3p for help-gnu-emacs@gnu.org; Sun, 18 Oct 2020 14:49:13 -0400 Original-Received: from mail-vs1-xe2c.google.com ([2607:f8b0:4864:20::e2c]:42723) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kUDjz-0006nQ-DR for help-gnu-emacs@gnu.org; Sun, 18 Oct 2020 14:49:12 -0400 Original-Received: by mail-vs1-xe2c.google.com with SMTP id w25so4467709vsk.9 for ; Sun, 18 Oct 2020 11:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=QINJTnpzg+/SYOF3wE+729aBnYwQ3w+eTbpDdTQXLJM=; b=cIZUndw2hDzgzkFi72tii4k61Q7RHj5+qEGvI4n362rAAXNJpRhHModgIZy3owUDqG PexLVyDRGjFYKIaa4q9gcs8eOVvMAkARCTlooiIjOP9rlREvVnFfc08FoxIPbV6sJKOq 8ZAr9VIS1OuWfra/N2lvK8gDh9zG5kssnrqwws2y3gg0YwVYRVVFnzgAvO/TOfAbWDiP 2BxkrMOk12wUlHB9/E+GLyhdoi7Liiypqzu3YHekcy+8WXCCzKWXeE/SfiaKJy32yvVf FLKd83o6Ak3CUd34HUJ+uuHxGb3zD8Exom1G4Cy5KQcY51s7G9KWAtdeRYZYBBONEixT Wbhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=QINJTnpzg+/SYOF3wE+729aBnYwQ3w+eTbpDdTQXLJM=; b=D7RJm/sFNCgGaOBlwOzeJb3fwXC5xzD7dPbDjQ7F2N4SDBgieC6/jopCHOg7PSg5hg xlFr9K3tyNCMzFtJ4RHsk9GFi4Y7H/rs1ipCd9dZKiqEEOZ/qEsUpjvaF0lae54/OB04 wwntWgLDpuE3yl7lxTSjDTvjIq9Z/yA5SJAQydFVd3iwWsUGEjQjmPYRswsi9Gk43rMb CFP/6241VDADMLVRCRYJOiFP8614dipHNWqBXRpV+fLHnZ2PTsaC9Qb4kpwR6o0WUL07 eXcuf6irUvLwJjihSFUv/0YMsPaVAvYVRi5B6/4U0YXEhZ7EUFHr81Z7SrJow3eRC3dw w6Vg== X-Gm-Message-State: AOAM531JfV3KX01WDUV8ahAE/75MO7f0dGEANCA9voWuOo+u4UQIlO5L cKesHlF7CtOyRvveW/m2t+IVDGOVNetbeJivx30= X-Google-Smtp-Source: ABdhPJx327QHoIDM8NtuIgyW94AYup+81YSRSkgN68e/j5ifuxyRpnKuT8/PiJmC/CtZta8NiA1LEejlZuv+9t8kIdA= X-Received: by 2002:a67:31c4:: with SMTP id x187mr7242735vsx.31.1603046949887; Sun, 18 Oct 2020 11:49:09 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::e2c; envelope-from=yurivkhan@gmail.com; helo=mail-vs1-xe2c.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124552 Archived-At: On Sun, 18 Oct 2020 at 18:08, William Xu 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=3D"$@" > docker exec -i myproject gdb -i=3Dmi ${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 =E2=80=98docker exec=E2=80=99 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.)