From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 586 invoked by alias); 13 Apr 2012 13:21:48 -0000 Received: (qmail 572 invoked by uid 22791); 13 Apr 2012 13:21:47 -0000 X-SWARE-Spam-Status: No, hits=-5.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SARE_HEAD_8BIT_SPAM,SARE_SUB_ENC_UTF8x2,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 Apr 2012 13:21:34 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3DDLXaU015849 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 13 Apr 2012 09:21:33 -0400 Received: from host2.jankratochvil.net (ovpn-116-70.ams2.redhat.com [10.36.116.70]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q3DDLSbY012502 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 13 Apr 2012 09:21:32 -0400 Date: Fri, 13 Apr 2012 13:21:00 -0000 From: Jan Kratochvil To: Ivan Di Prima Cc: gdb@sourceware.org Subject: Re: =?utf-8?Q?reliabilit=E2=80=8B?= =?utf-8?Q?y?= of registers contents within each frame Message-ID: <20120413132127.GD22952@host2.jankratochvil.net> References: <4F8723C8.5060900@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F8723C8.5060900@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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 X-SW-Source: 2012-04/txt/msg00099.txt.bz2 On Thu, 12 Apr 2012 20:49:44 +0200, Ivan Di Prima wrote: > Basically if move "up" and "down" between frames and then display the > register contents with "info reg" do I see ALL the register captured in that > frame or just the registers which are "push" on the stack within the source > code? "ALL". Which registers are saved by which frame you see in "info frame". > Also, will optimization affect register values such that even if they are > not marked "" by gdb their values will still be > readable but unreliable? I was told it applies to gcc-4.0+. While the mail below is not a direct countercase I trust more just gcc-4.5+: [patch] Fix regression by me for gcc-4.0...gcc-4.4 i386 -O2 -g parameters (PR 13777) http://sourceware.org/ml/gdb-patches/2012-02/msg00673.html Regards, Jan