From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13163 invoked by alias); 8 Jul 2013 09:12:46 -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 13144 invoked by uid 89); 8 Jul 2013 09:12:43 -0000 X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS,TW_XF autolearn=ham version=3.3.1 Received: from mail-oa0-f46.google.com (HELO mail-oa0-f46.google.com) (209.85.219.46) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 08 Jul 2013 09:12:42 +0000 Received: by mail-oa0-f46.google.com with SMTP id h1so5954275oag.5 for ; Mon, 08 Jul 2013 02:12:40 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.60.115.199 with SMTP id jq7mr19396657oeb.19.1373274760772; Mon, 08 Jul 2013 02:12:40 -0700 (PDT) Received: by 10.182.21.169 with HTTP; Mon, 8 Jul 2013 02:12:40 -0700 (PDT) In-Reply-To: <20130708084723.GA25829@host2.jankratochvil.net> References: <20130703090259.GA1854@host2.jankratochvil.net> <20130703144857.GA27367@host2.jankratochvil.net> <20130704061052.GA19661@host2.jankratochvil.net> <20130705184238.GA661@host2.jankratochvil.net> <20130708084723.GA25829@host2.jankratochvil.net> Date: Mon, 08 Jul 2013 09:12:00 -0000 Message-ID: Subject: Re: Fwd: vdso From: vijay nag To: Jan Kratochvil Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2013-07/txt/msg00036.txt.bz2 On Mon, Jul 8, 2013 at 2:17 PM, Jan Kratochvil wrote: > On Mon, 08 Jul 2013 08:50:49 +0200, vijay nag wrote: >> Breakpoint 1, linux_proc_xfer_partial (ops=0x8499230, object=TARGET_OBJECT_MEMORY, annex=0x0, readbuf=0xbffff250 "\r", writebuf=0x0, offset=4294967296, len=4294959104) >> at linux-nat.c:4386 >> 4386 if (object != TARGET_OBJECT_MEMORY || !readbuf) >> (gdb) p /x offset >> $3 = 0xffffe000 >> (gdb) p /x len >> $4 = 0x34 > > offset and len in the first line correspond to offset 0x100000000 > and len 0xffffe000 resp. So I do not see the values you printed from GDB > below. > > This is general debugging of GDB, it no longer belongs to this list. > You should best file it to GDB Bugzilla and try to provide reproducibility > information. > > > There seems to be some 32->64bit extension problem (0x100000000). Isn't the > GDB built for x86_64 target while you run it for i386 target? This sure > should work but there may be some issues. Try to build 32-bit host GDB as > troubleshooting: > CFLAGS=-m32 ./configure i386-unknown-linux-gnu > But this is already rather for the Bugzilla. > > > Jan I've built 32 bit gdb configured for i686-pc-linux-gnu and my kernel too is 32 bit one. gdb GNU gdb (GDB) 7.5 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu". For bug reporting instructions, please see: . uname -a Linux 2.6.18-myos-v2-38059-deb #1 SMP Sun Apr 3 01:48:20 EDT 2011 i686 GNU/Linux Are you saying that gdb is miscalculating offset of vdso ?