From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Kevin Gao Newsgroups: gmane.emacs.help Subject: Re: Why gdb inside emacs cannot print out c++ object? Date: Fri, 15 Mar 2019 16:46:30 -0700 Message-ID: References: <831s3933i4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="77788"; mail-complaints-to="usenet@blaine.gmane.org" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 16 00:47:09 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4wXd-000K9o-6n for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Mar 2019 00:47:09 +0100 Original-Received: from localhost ([127.0.0.1]:34503 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4wXc-0006OQ-38 for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Mar 2019 19:47:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4wXH-0006NS-BJ for help-gnu-emacs@gnu.org; Fri, 15 Mar 2019 19:46:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4wXG-0003ML-Ez for help-gnu-emacs@gnu.org; Fri, 15 Mar 2019 19:46:47 -0400 Original-Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]:43539) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h4wXE-0003Jt-EU; Fri, 15 Mar 2019 19:46:44 -0400 Original-Received: by mail-ed1-x52f.google.com with SMTP id m35so8982152ede.10; Fri, 15 Mar 2019 16:46:43 -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=bFTc2++TpcRdglYlkWx+pi3qZMRbC7Y2qGctq+JokbA=; b=Cl+ZXFsmQue4JNoMHWrgHlEIqSnXSXGgIfmy5Bju8V1z5KEsmt3+mfpxpmiHr5sG4L t6a3jX2e1eOvh7XsP1FBkT4vz90tbA2birACTD1gCYSrmdvG+6sDnbhW9vdiT3SzO7Li 2esb5Oq/sL/rYi9kwjRLsAGfoluivnEYDGTtAOsRIZpBDVRLknZYZCtRmIC522oKXV1L DwrjaBL2NiO9/qYm/JQVx5+DYD7yIS5y7Za7vJTDxymhVxH0Tm3iw5G4Iigbt5YBsbWO uugM5f5EFDUFJ2vGk5fOnkEE0efPWl+Df9hgG+3PePi40ojTCKUk3+/lTcotM3e3XZUN /iLw== 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=bFTc2++TpcRdglYlkWx+pi3qZMRbC7Y2qGctq+JokbA=; b=gTIdN/2FdRtVcy9/5EemLTglqIjyKWL1jkSiixTNmlJ/iDYqZj2iMI72woyPFK+338 AX5TnC/uNPtS/MIaKOtF+NJfvEYcQ8XS4wD4NYiJhDc8bdpXhlVohELSzUN+cZnZMvUa 3ZrS1lHrbyI2SNwURNgQDFwoFXGEElIpvpKhAmqaH63VYprc37lMmc7nJ7hCiPjcVSUd wYZyeW8KnpmHUeXMGCd7TEEe4JngUYhp4WYfqFJK/C6lraB8ZVoLjVQ/RRe7YIsYqyFe 07pSiPYCt+TJcgZ9BtE+Rscw9EYzAy/nTVmGc+up79JjYB8MoRg7ENTipTLP4pTddjMq ZbhQ== X-Gm-Message-State: APjAAAVqRYzfmTpMA/NQOEeM5RaGql/XS9C8aB/8/dJr0prNUk3unFJ7 KlQwThoeZVPE1w8mdV+o8AMeMo7fpIvGK7iC7QVP X-Google-Smtp-Source: APXvYqznm6RbS2s3rV5lkjFLyVmh/iG5TCghX7JCR1UlE4EZImCmhzOVsaUXQqFffPS53Chgh+/AytsDD1d75cblz4s= X-Received: by 2002:a17:906:3db1:: with SMTP id y17mr3725692ejh.90.1552693602092; Fri, 15 Mar 2019 16:46:42 -0700 (PDT) In-Reply-To: <831s3933i4.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::52f X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119637 Archived-At: Seems sth wrong with my machine. Sorry for the false report. May I ask a related question? In the local windows, instead of showing the value, it shows "". Is it possible to show the value of c++ object? (eg a std::map's value) Thanks, Kevin On Thu, Mar 14, 2019 at 8:00 AM Eli Zaretskii wrote: > > From: Kevin Gao > > Date: Thu, 14 Mar 2019 00:04:29 -0700 > > > > Suppose: p is c++ iterator of an object of multimap > string>>; > > > > inside emacs gdb (with many windows on), "p p" returns: > > *$1 = {_M_node = 0x555555775fa0}*, which is meaningless to me. > > > > As a comparison, in raw gdb (etc gdb ./a.out), "p p" returns: > > *$1 = {first = 1, second = {first = "foo", second = "bar"}}*, which is > what > > I want to see. > > > > Why gdb inside emacs cannot print out c++ object? Seems emacs does some > > special setting which turns off c++ mode? > > Does it work if you invoke GDB with "M-x gud-gdb" instead of "M-x gdb"? > >