From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20869 invoked by alias); 31 Mar 2006 06:38:46 -0000 Received: (qmail 20857 invoked by uid 22791); 31 Mar 2006 06:38:45 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 31 Mar 2006 06:38:44 +0000 Received: from farnswood.snap.net.nz (p202-124-115-139.snap.net.nz [202.124.115.139]) by viper.snap.net.nz (Postfix) with ESMTP id B383974C2C6 for ; Fri, 31 Mar 2006 18:38:39 +1200 (NZST) Received: by farnswood.snap.net.nz (Postfix, from userid 501) id 5F3BD62A99; Fri, 31 Mar 2006 07:38:04 +0100 (BST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17452.52811.89546.605084@farnswood.snap.net.nz> Date: Fri, 31 Mar 2006 06:57:00 -0000 To: gdb@sources.redhat.com Subject: info locals gives error X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00227.txt.bz2 I've just upgraded to Fedora Core 5 (kernel 2.6.15-1.2054_FC5) and with the program below I get errors which didn't occur before (Fedora Core 3). This error might relate to Vladimir Prus's earlier report (http://sources.redhat.com/ml/gdb-patches/2006-03/msg00225.html) and value_print. /* -*- compile-command: "cc -g -o simple simple.c"; -*- */ main(int argc, char **argv) { int i; i = 1; } Fedora's GDB: nickrob/160 gdb simple GNU gdb Red Hat Linux (6.3.0.0-1.122rh) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) b main Breakpoint 1 at 0x8048354: file simple.c, line 3. (gdb) r Starting program: /home/nickrob/simple Reading symbols from shared object read from target memory...done. Loaded system supplied DSO at 0x80e000 Breakpoint 1, main () at simple.c:3 3 main(int argc, char **argv) { (gdb) info locals argc = Cannot access memory at address 0x0 (gdb) The program is running. Exit anyway? (y or n) y With current GDB: nickrob/161 ~/src/gdb/gdb simple GNU gdb 6.4.50.20060327-cvs Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) b main Breakpoint 1 at 0x8048365: file simple.c, line 5. (gdb) r Starting program: /home/nickrob/simple Breakpoint 1, main () at simple.c:5 5 i = 1; (gdb) info locals argc = Cannot access memory at address 0x0 (gdb) gcc --version gives "gcc (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3)".