From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15767 invoked by alias); 29 Apr 2006 14:20:52 -0000 Received: (qmail 15693 invoked by uid 22791); 29 Apr 2006 14:20:51 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Sat, 29 Apr 2006 14:20:45 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FZqJK-0005QW-Mv; Sat, 29 Apr 2006 10:20:38 -0400 Date: Sat, 29 Apr 2006 14:20:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: Joel Brobecker , gdb-patches@sources.redhat.com Subject: Re: [RFC] problem fetching inferior memory due to breakpoint Message-ID: <20060429142037.GA20825@nevyn.them.org> Mail-Followup-To: Eli Zaretskii , Joel Brobecker , gdb-patches@sources.redhat.com References: <20060426190517.GA930@adacore.com> <20060427205621.GD930@adacore.com> <20060428170001.GE930@adacore.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00387.txt.bz2 On Sat, Apr 29, 2006 at 05:13:49PM +0300, Eli Zaretskii wrote: > Here's what I get (from the .s file written by the above GCC command): > > .file "gdbt.c" > .section .debug_abbrev,"dr" > Ldebug_abbrev0: > .section .debug_info,"dr" > Ldebug_info0: > .section .debug_line,"dr" > Ldebug_line0: > .text > Ltext0: > .section .rdata,"dr" > LC0: > .ascii "Hello world.\12\0" > .text > .globl _hello > .def _hello; .scl 2; .type 32; .endef > _hello: > LFB10: > .file 1 "gdbt.c" > .loc 1 5 0 > pushl %ebp That's why. Your Cygwin compiler uses DWARF-2 unwinding; therefore the prologue analyzer is never even invoked. Try using -gstabs instead of -gdwarf-2 (or not using -g at all), and I bet you'll see the problem. -- Daniel Jacobowitz CodeSourcery