From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16322 invoked by alias); 2 Jul 2007 19:14:47 -0000 Received: (qmail 16314 invoked by uid 22791); 2 Jul 2007 19:14:46 -0000 X-Spam-Check-By: sourceware.org Received: from wa-out-1112.google.com (HELO wa-out-1112.google.com) (209.85.146.176) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 02 Jul 2007 19:14:44 +0000 Received: by wa-out-1112.google.com with SMTP id l35so2355194waf for ; Mon, 02 Jul 2007 12:14:43 -0700 (PDT) Received: by 10.114.109.1 with SMTP id h1mr5417847wac.1183403683024; Mon, 02 Jul 2007 12:14:43 -0700 (PDT) Received: by 10.114.160.4 with HTTP; Mon, 2 Jul 2007 12:14:43 -0700 (PDT) Message-ID: Date: Mon, 02 Jul 2007 19:14:00 -0000 From: "Srinivas Murthy" To: gdb@sourceware.org Subject: x86_64 gdb and objdump MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: b4a2ab27a5ed6be9 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: 2007-07/txt/msg00018.txt.bz2 >From a core dump file, I see that with gdb I get a "Cannot access memory at address xx" msg but using objdump, I can see the contents of the memory location on the core file. Any ideas what is going wrong? Thanks. # gdb test core_dir/core.test.30235 GNU gdb 6.6 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 "x86_64-unknown-linux-gnu"... Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `./test'. Program terminated with signal 11, Segmentation fault. #0 0x00000000004004f5 in bar () at test.c:10 10 test.c: No such file or directory. in test.c (gdb) bt #0 0x00000000004004f5 in bar () at test.c:10 Cannot access memory at address 0x7fbfffee98 However, objdump shows that there is some valid content at the location: # objdump -D /tmp/core.test.30235 |less |grep 7fbfffee98 7fbfffe95f: 00 08 add %cl,(%rax)