From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5642 invoked by alias); 31 Aug 2010 12:52:04 -0000 Received: (qmail 5621 invoked by uid 48); 31 Aug 2010 12:52:04 -0000 Date: Tue, 31 Aug 2010 12:52:00 -0000 Message-ID: <20100831125204.5620.qmail@sourceware.org> From: "rguenth at gcc dot gnu dot org" To: gdb-prs@sourceware.org In-Reply-To: <20100710211433.11804.jan.kratochvil@redhat.com> References: <20100710211433.11804.jan.kratochvil@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug corefiles/11804] Fix -Wl,-z,relro gcore writer (+maybe reader) X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2010-q3/txt/msg00339.txt.bz2 ------- Additional Comments From rguenth at gcc dot gnu dot org 2010-08-31 12:52 ------- In my gdb copy (7.0 based), the following looks suspicious: if (dyn_tag == dyntag) { /* If requested, try to read the runtime value of this .dynamic entry. */ if (ptr) { gdb_byte ptr_buf[8]; CORE_ADDR ptr_addr; int got; ptr_addr = dyn_addr + (buf - bufstart) + arch_size / 8; ^^^^^^^^^^^^^^^^^ if (ptr != NULL) { if (debug_solib) fprintf_unfiltered (gdb_stdlog, "elf_locate_base: unrelocated ptr addr %s\n", paddress (target_gdbarch, ptr_addr)); I can see the dynamic section contents just fine at dyn_addr + (buf - bufstart). OTOH a recent 7.1 tree looks much different (but has the same logic and also doesn't work for me - but it lost the nice debugging stuff). -- http://sourceware.org/bugzilla/show_bug.cgi?id=11804 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.