This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/dwarf] Pass some global state around
- From: David Carlton <carlton at kealia dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: jimb at redhat dot com
- Date: Mon, 10 Nov 2003 08:55:06 -0800
- Subject: Re: [RFA/dwarf] Pass some global state around
- References: <20031110155049.GA23799@nevyn.them.org>
On Mon, 10 Nov 2003 10:50:49 -0500, Daniel Jacobowitz <drow@mvista.com> said:
> This is a cleanup that I've discussed with Jim before. We create a new
> structure, dwarf2_cu, and pass it to just about everything. Primary goals:
> - Move some things that don't really belong in the comp_unit_head out of
> that and into the new type.
> - Move global state that shouldn't be global into the new type.
> The eventual goal is to eliminate most/all global state for the reading of a
> compilation unit, so that we can do more than one at a time.
Seems like a good idea to me - global state is bad, long argument
lists are bad, and arguments that frequently get passed around
together should be combined into a single data structure.
David Carlton
carlton@kealia.com