From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: otadmor Newsgroups: gmane.emacs.help Subject: Re: gdb mode with gdb command from the docker Date: Sun, 18 Oct 2020 22:00:23 +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="30088"; mail-complaints-to="usenet@ciao.gmane.io" Cc: William Xu , help-gnu-emacs To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 18 21:01:53 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 1kUDwG-0007ij-TC for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 18 Oct 2020 21:01:52 +0200 Original-Received: from localhost ([::1]:49648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUDwF-0001ZX-V1 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 18 Oct 2020 15:01:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUDv4-0001Yl-HW for help-gnu-emacs@gnu.org; Sun, 18 Oct 2020 15:00:38 -0400 Original-Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:39346) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kUDv2-000832-Gj for help-gnu-emacs@gnu.org; Sun, 18 Oct 2020 15:00:38 -0400 Original-Received: by mail-wm1-x32a.google.com with SMTP id d3so10539852wma.4 for ; Sun, 18 Oct 2020 12:00:35 -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; bh=RGitudvyUJ7hV+t8VtEq1Na5BxSR/VpI0/qnOFOAlCQ=; b=Q8FoC7y4uWg4BRfo3pqn84r6tfoivWMxdHQZAyONBfLkvNFu2V3O8FFkvBGQ09w3C2 ouQLeiHTRt1QZvdnK9vp3fMeI1bId7a/A6KNAIJP5mWLbEFzsV5TQ/k5LZcyTz7zdGor WfeGlNCWvTxjhkhgCp32iDSGQMOugNMg2qVntAmpt1o0N8Uppj7aoBuSpx+KPSp7JvGy eJCgjtOcTY/C5iD9RijUwf8gooD2dAkg+Bwkqf81OHVJpSpDNRMYvCAYuewfBiPCvN/K ObGNxpOHt5rbGxx/SPIHYG88C/sHWwDf3u3r3QInWy8ZjNeoKJKWUfj9lBfkKab2S+1x YujQ== 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; bh=RGitudvyUJ7hV+t8VtEq1Na5BxSR/VpI0/qnOFOAlCQ=; b=PEZCbPtmMFNKxn16cp+hWBOsNqjuAbMBbHOAzsD4kW375zjtW/OZQWDCYy95au5OT/ sjf8qIvJYm9rRc/EDU8AXO6GNv9I8YRoSDS/mPQ/udjqKHMOHJAGW0BiZ04feymtWIJr UJZ+uOEXHaagULKAnL2NU3E2ENcXtc/JiTzGbQBWN2gH+03/CHHEifw2lGkrA8sB/pMq GSkO8hn1lrxDcAjVHhnP5AFZBQTOr/vWCkkhQQIg31AehfnXowy9uYmcbJTvMmlTp2IN Ekt7sL1bSNEDF8033qCPOX0hC4TNjw2bozD0loFyN64KgBTLaQXBOkb04D4ph0K07V/E oa1Q== X-Gm-Message-State: AOAM530vNyKHOZfZqtrP36RS9n8NctwbR0f5mvFDVOZq5chzUjgtRGsw RP89SkoTGCTYyhtow4ehmCoKIA2pEWzWminJI9Y= X-Google-Smtp-Source: ABdhPJzTFQdXGPcJwjOtU3sgZ4+LJ3Ghgmyi7iai9Xj0paD2TodhKPxLuFn1f2hAWJGkJxK3/n8oLBxEBTwFuhhDNSs= X-Received: by 2002:a1c:6a09:: with SMTP id f9mr13809904wmc.24.1603047634215; Sun, 18 Oct 2020 12:00:34 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=otadmor@gmail.com; helo=mail-wm1-x32a.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, HTML_MESSAGE=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-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:124553 Archived-At: 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 wrote: > 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 wa= y? (I did not > test this; just a hunch because something seems to expect a tty and -t > causes docker to allocate one.) > >