From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18138 invoked by alias); 14 Dec 2009 23:09:59 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 18129 invoked by uid 22791); 14 Dec 2009 23:09:58 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Date: Mon, 14 Dec 2009 23:09:00 -0000 From: Daniel Jacobowitz To: Tom Tromey Cc: archer@sourceware.org Subject: Re: Initial psymtab replacement results Message-ID: <20091214230947.GA31362@caradoc.them.org> References: <20091211235901.GA16889@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-SW-Source: 2009-q4/txt/msg00101.txt.bz2 On Mon, Dec 14, 2009 at 03:39:50PM -0700, Tom Tromey wrote: > I understand the compiler problem. If we had a program to rewrite the > appropriate DWARF sections, would that address the problems you have? > It seems to me that it would. I guess so; if you allow GDB to automatically invoke said program (there is prior art for that, too) then it's pretty much identical. I still think that you will have long term maintenance problems with this approach and it will cramp future desire to extend it or change GDB. But that's not a provable position. > FWIW if we were going to do our own cache, I wouldn't put it in a form > like .debug_gnu_index or .debug_pub*. I'd just have gdb write out a > mappable data structure. Or you could drag another bit of GDB into this century, and use SQLite or some other in-process database. Mappable data structures are tricky; one thing I'd definitely insist on is host neutrality. IMO that is not optional. > One definite positive about the branch is that these changes are a lot > simpler now. The psymtab stuff is mostly isolated, and writing a new > "back end" is reasonably self-contained. This makes me very happy. -- Daniel Jacobowitz CodeSourcery