From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5399 invoked by alias); 23 Sep 2003 22:00:36 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 5392 invoked from network); 23 Sep 2003 22:00:36 -0000 Received: from unknown (HELO zenia.home) (12.223.225.216) by sources.redhat.com with SMTP; 23 Sep 2003 22:00:36 -0000 Received: by zenia.home (Postfix, from userid 5433) id 61BCE20762; Tue, 23 Sep 2003 16:57:14 -0500 (EST) To: Andrew Cagney Cc: gdb-patches@sources.redhat.com Subject: Re: [6.0] PROBLEMS and NEWS References: <3F6CBFA5.7060308@redhat.com> <3F6F499E.7020102@redhat.com> <3F70A3C2.5080504@redhat.com> From: Jim Blandy Date: Tue, 23 Sep 2003 22:00:00 -0000 In-Reply-To: <3F70A3C2.5080504@redhat.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-09/txt/msg00513.txt.bz2 Andrew Cagney writes: > >> +DWARF 2 Location Expressions allow the compiler to more exactly > >> +describe the location of variables to the debugger. > > It'd be nice to give some indication of why the user would care about > > this, like: "Taken together with Dwarf 2 Call Frame Information, > > location expressions give GDB the information it needs to debug > > optimized code much more effectively." > > At one stage I had the word optimized, but took it out. I've changed it to: > > DWARF 2 Location Expressions allow the compiler to more completly > describe the location of variables (even in optimized code) to the > debugger. You're right --- it's always better to describe things that way. How hard the compiler worked to generate the code isn't the point: how accurately the compiler describes whatever it produces is. I'd say "more accurately" instead of "more completely", since the most common manifestation of the old problem was that GDB was wrong about the location of the variable, not that it couldn't find the variable.