diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-12-15 14:30:18 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-12-15 14:30:18 +0000 |
commit | debb1f09a1d44c72b1a8c4c34d0408f991a3947b (patch) | |
tree | 5e5dcb27a511fee4a43f7029f9a308180e03581f /gdb/rs6000-tdep.c | |
parent | c16998a76c35561d1213cd8d0c44e76350d84529 (diff) | |
download | gdb-debb1f09a1d44c72b1a8c4c34d0408f991a3947b.zip gdb-debb1f09a1d44c72b1a8c4c34d0408f991a3947b.tar.gz gdb-debb1f09a1d44c72b1a8c4c34d0408f991a3947b.tar.bz2 |
Add ravenscar-thread support for powerpc.
gdb/ChangeLog:
* ppc-ravenscar-thread.h, ppc-ravenscar-thread.c: New files.
* Makefile.in (ALL_TARGET_OBS): Add ppc-ravenscar-thread.o.
(HFILES_NO_SRCDIR): Add ppc-ravenscar-thread.h.
(ALLDEPFILES): Add ppc-ravenscar-thread.c.
* configure.tgt: Add ravenscar-thread.o and ppc-ravenscar-thread.o
to gdb_target_obs for every target that uses rs6000-tdep.o.
* rs6000-tdep.c: #include "ppc-ravenscar-thread.h".
(rs6000_gdbarch_init): Call register_e500_ravenscar_ops
or register_ppc_ravenscar_ops.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r-- | gdb/rs6000-tdep.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 07b81bc..50de7ef 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -52,6 +52,7 @@ #include "solib-svr4.h" #include "ppc-tdep.h" +#include "ppc-ravenscar-thread.h" #include "gdb_assert.h" #include "dis-asm.h" @@ -4153,6 +4154,12 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) gdb_assert (gdbarch_num_regs (gdbarch) + gdbarch_num_pseudo_regs (gdbarch) == cur_reg); + /* Register the ravenscar_arch_ops. */ + if (mach == bfd_mach_ppc_e500) + register_e500_ravenscar_ops (gdbarch); + else + register_ppc_ravenscar_ops (gdbarch); + return gdbarch; } |