From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13484 invoked by alias); 26 Jun 2013 18:45:31 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 13456 invoked by uid 89); 26 Jun 2013 18:45:27 -0000 X-Spam-SWARE-Status: No, score=-7.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 26 Jun 2013 18:45:27 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r5QIjNj7017307 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 26 Jun 2013 14:45:23 -0400 Received: from host2.jankratochvil.net (ovpn-116-40.ams2.redhat.com [10.36.116.40]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r5QIjKfl007036 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 26 Jun 2013 14:45:22 -0400 Date: Wed, 26 Jun 2013 18:45:00 -0000 From: Jan Kratochvil To: jian shen Cc: gdb@sourceware.org Subject: Re: gdb cannot call help function in replay mode Message-ID: <20130626184518.GA3080@host2.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2013-06/txt/msg00058.txt.bz2 On Tue, 25 Jun 2013 06:11:26 +0200, jian shen wrote: > In below example, when I try to call function getA1() in replay mode, gdb give > warning that it will write memory and make the execution log unusable, although > this function does not write memory, only read memory. The function writes to stack and registers. > In real project, I have some helper function to dump what a handle is. But in > replay mode, I could not call such functions. This limitation makes the replay > mode almost unusable to me. Any suggestion? You should use Python Pretty Printer instead. This will also work for core file analysis where you also cannot call inferior functions. Jan