This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/dwarf] Pass some global state around


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]