aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2004-05-20 00:53:06 +0000
committerJim Blandy <jimb@codesourcery.com>2004-05-20 00:53:06 +0000
commitbe07a590ed0a975673fb86e13d07362ff930c750 (patch)
tree45203347f4831ce8f5b982aaaa4174eb971ccd92 /gdb/Makefile.in
parente14ad0e71ad3ddfb0b603ef48b28f530c49024e7 (diff)
downloadgdb-be07a590ed0a975673fb86e13d07362ff930c750.zip
gdb-be07a590ed0a975673fb86e13d07362ff930c750.tar.gz
gdb-be07a590ed0a975673fb86e13d07362ff930c750.tar.bz2
Use a constructor function to create regset structures.
* regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs. (struct regset): Use supply_regset_ftype. Add new 'collect_regset' member. (regset_xmalloc): New declaration. * regset.c: New file. * am64-tdep.c (amd64_regset_from_core_section): Use regset_xmalloc to construct regset structures. * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same. * i386-tdep.c (i386_regset_from_core_section): Same. * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same. * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same. * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same. * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same. * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same. * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same. * Makefile.in (COMMON_OBS): Add regset.o. (regset.o): New rule.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r--gdb/Makefile.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 8c0813f..effe5c1 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -910,7 +910,7 @@ COMMON_OBS = $(DEPFILES) $(YYOBJ) \
frame-base.o \
gnu-v2-abi.o gnu-v3-abi.o hpacc-abi.o cp-abi.o cp-support.o \
cp-namespace.o \
- reggroups.o \
+ reggroups.o regset.o \
trad-frame.o \
tramp-frame.o
@@ -2197,6 +2197,7 @@ regcache.o: regcache.c $(defs_h) $(inferior_h) $(target_h) $(gdbarch_h) \
$(gdb_string_h) $(gdbcmd_h) $(observer_h)
reggroups.o: reggroups.c $(defs_h) $(reggroups_h) $(gdbtypes_h) \
$(gdb_assert_h) $(regcache_h) $(command_h) $(gdbcmd_h)
+regset.o: regset.c $(defs_h) $(regset_h) $(gdb_assert_h)
remote.o: remote.c $(defs_h) $(gdb_string_h) $(inferior_h) $(bfd_h) \
$(symfile_h) $(target_h) $(gdbcmd_h) $(objfiles_h) $(gdb_stabs_h) \
$(gdbthread_h) $(remote_h) $(regcache_h) $(value_h) $(gdb_assert_h) \