OSDN Git Service

2003-08-04 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Mon, 4 Aug 2003 20:34:10 +0000 (20:34 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 4 Aug 2003 20:34:10 +0000 (20:34 +0000)
commit1a7cf6a792d6c14e38a0f0094275d27b9cd82351
treea8cca14bb312e22de3b11695ae78743072bf08eb
parente5bd68107ac3a3a792ffe51e00e5989f74a72b14
2003-08-04  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.
gdb/ChangeLog
gdb/infcmd.c
gdb/regcache.c
gdb/reggroups.c
gdb/reggroups.h