On Wednesday 04 November 2009, David Brownell wrote: > Provide a cleaner way to handle single inheritance of targets > in C, using the same model Linux does: structs containing other > structs, un-nested via calls to a "container_of()" macro that > are packaged in typesafe inline functions.
I committed all this, along with cleanups those patches depended on. Verified on Cortex-M3 and ARM920; I don't think the other arm9/arm7/xscale stuff should break, or Cortex-A8, but let me know if you see new issues. Summary: all of the ARM targets except ARM11 and the Feroceon/Dragonite stuff have been updated. Also, the two MIPS targets are still using the old arch_info stuff. Those cleanups can come later, but none are currently on my particular agenda. - Dave > Rule of thumb: where there's an X->arch_info void* pointer, > access to that pointer can and should be removed. It may be > convenient to set up pointers to some of the embedded structs; > and shrink their current "*_common" names (annoyingly long). _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
