From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26782 invoked by alias); 25 Nov 2002 17:44:49 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 26774 invoked from network); 25 Nov 2002 17:44:47 -0000 Received: from unknown (HELO zenia.red-bean.com) (66.244.67.22) by sources.redhat.com with SMTP; 25 Nov 2002 17:44:47 -0000 Received: (from jimb@localhost) by zenia.red-bean.com (8.11.6/8.11.6) id gAPHQ6f19592; Mon, 25 Nov 2002 12:26:06 -0500 To: Alexander Larsson Cc: gdb@sources.redhat.com Subject: Re: Final separate debug info patch References: From: Jim Blandy Date: Mon, 25 Nov 2002 09:44:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.92 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-11/txt/msg00354.txt.bz2 Alexander Larsson writes: > On 24 Nov 2002, Jim Blandy wrote: > > The patch as posted doesn't properly handle the case where the > > executable file has changed since the last 'run' command, and GDB > > needs to re-read the symbols. It does get rid of the out-of-date > > separated objfile, but it doesn't read in the new one. You may have > > said this in one of your earlier posts, but I'll guess now that the > > omission was deliberate: this is kind of a pain to do. > > Yes. That was more or less deliberate. My knowledge of gdb was reaching > its limits... I don't blame you a bit. It doesn't help that GDB has four data structures which all look pretty much the same: - struct section_offsets (used by debug readers to offset shlib syms) - struct section_addr_info (holds user args to add-symbol-file, and dl info) - struct section_table (in the target structure, for exec files and cores?) - struct obj_section (for overlay management) And the functions in symfile.c don't really break the problem down very helpfully. > Btw. You saw that uli fixed the strip problem you had, right? No, that's good. Where did he post about it?