From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18752 invoked by alias); 16 Jul 2007 19:35:41 -0000 Received: (qmail 18744 invoked by uid 22791); 16 Jul 2007 19:35:41 -0000 X-Spam-Check-By: sourceware.org Received: from igw1.br.ibm.com (HELO igw1.br.ibm.com) (32.104.18.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 16 Jul 2007 19:35:38 +0000 Received: from mailhub3.br.ibm.com (mailhub3 [9.18.232.110]) by igw1.br.ibm.com (Postfix) with ESMTP id B67C6D00E9 for ; Sun, 15 Jul 2007 22:13:24 -0300 (BRT) Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.18.232.47]) by mailhub3.br.ibm.com (8.13.8/8.13.8/NCO v8.4) with ESMTP id l6G1SK5J1601766 for ; Sun, 15 Jul 2007 22:28:20 -0300 Received: from d24av02.br.ibm.com (loopback [127.0.0.1]) by d24av02.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l6G1SKMw027776 for ; Sun, 15 Jul 2007 22:28:20 -0300 Received: from ltctuxday.br.ibm.com ([9.8.1.34]) by d24av02.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l6G1SKmN027767 for ; Sun, 15 Jul 2007 22:28:20 -0300 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by ltctuxday.br.ibm.com (Postfix) with ESMTP id 190833FB3B for ; Sun, 15 Jul 2007 22:30:57 -0300 (BRT) Subject: Re: GDB and mmap From: Rodrigo Rubira Branco Reply-To: rrbranco@br.ibm.com To: gdb@sourceware.org In-Reply-To: <26.140-15180-2028046551-1184314506@seznam.cz> References: <26.140-15180-2028046551-1184314506@seznam.cz> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-VJ5ITUCpCxUWOfMgZ1zU" Date: Tue, 17 Jul 2007 03:46:00 -0000 Message-Id: <1184549456.4895.8.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 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: 2007-07/txt/msg00132.txt.bz2 --=-VJ5ITUCpCxUWOfMgZ1zU Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Content-length: 674 On Fri, 2007-07-13 at 10:15 +0200, Jan Somr wrote: > Hi all, please help.=20 > I have an application which makes cores and uses mapped memory (mmap). H= ow can I access this memory in GDB?=20 > When I try print it I get this message: "Cannot access memory at address = xxxxxxxxxx". Is the shared memory dumped in the core? > Thank you. If the vm_area_struct of the mapped area have the vm_flags attribute set to VM_IO, this area will not be dumped... cya, Rodrigo (BSDaemon). --=20 Rodrigo Rubira Branco Software Engineer=20 Advanced Linux Response Team (ALRT) / Linux on Power Toolchain IBM Linux Technology Center (IBM/LTC) rrbranco@br.ibm.com GPG KeyID: 1FCEDEA1 --=-VJ5ITUCpCxUWOfMgZ1zU Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part Content-length: 189 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBGmspQRpuC3B/O3qERAs91AJ9osxJ/EFZ5onYcpAm1UqWM2ma0uQCfTd/l YDX0W7Wxx2KWGYeyqtIOqws= =WMiv -----END PGP SIGNATURE----- --=-VJ5ITUCpCxUWOfMgZ1zU--