[patch, rfc] Switch reggroups to the architecture's obstack

Andrew Cagney ac131313@redhat.com
Mon Aug 4 19:46:00 GMT 2003


> Hello,
> 
> This patch updates the reggroups code so that it uses the architecture's obstack.  Only one thing of note, it replaces reggroups (returned an array of groups) with reggroup_next (an iterator).
> 
> I'll look to commit this in a few days,

I'm just checking this in now ...

Andrew


> 2003-08-01  Andrew Cagney  <cagney@redhat.com>
> 
> 	* reggroups.c (struct reggroup_el): Define.
> 	(struct reggroups): Delete field "nr_group".  Replace array
> 	"group" with a "first" to "last" linked list.
> 	(reggroups_init): Update.  Allocate using gdbarch's obstack.
> 	(reggroups_free): Delete function.
> 	(add_group): Update.  Add "el" parameter.
> 	(reggroup_add): Pass gdbarch obstack allocated space to add_group.
> 	(default_groups): Update.
> 	(reggroup_next): Replace reggroups.
> 	(reggroups_dump): Update.
> 	(_initialize_reggroup): Pass XMALLOC allocated space to add_group.
> 	* regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
> 	* infcmd.c (registers_info): Use reggroup_next instead of reggroups.
> 




More information about the Gdb-patches mailing list