diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2008-09-05 11:58:30 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2008-09-05 11:58:30 +0000 |
commit | 2454a0247b12f34d5eb87f52172722115b0f0915 (patch) | |
tree | 225e9adcebeb877f6390e36968983bda15abe030 /gdb/rs6000-tdep.c | |
parent | b52323fa6f6d31f493d91a425c036075ecf05e14 (diff) | |
download | gdb-2454a0247b12f34d5eb87f52172722115b0f0915.zip gdb-2454a0247b12f34d5eb87f52172722115b0f0915.tar.gz gdb-2454a0247b12f34d5eb87f52172722115b0f0915.tar.bz2 |
* rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
*before* calling gdbarch_init_osabi.
(rs6000_aix_init_osabi): Disable displaced stepping.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r-- | gdb/rs6000-tdep.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 966ca1d..d85af53 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -3669,6 +3669,17 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) /* Frame handling. */ dwarf2_frame_set_init_reg (gdbarch, ppc_dwarf2_frame_init_reg); + /* Setup displaced stepping. */ + set_gdbarch_displaced_step_copy_insn (gdbarch, + simple_displaced_step_copy_insn); + set_gdbarch_displaced_step_fixup (gdbarch, ppc_displaced_step_fixup); + set_gdbarch_displaced_step_free_closure (gdbarch, + simple_displaced_step_free_closure); + set_gdbarch_displaced_step_location (gdbarch, + displaced_step_at_entry_point); + + set_gdbarch_max_insn_length (gdbarch, PPC_INSN_SIZE); + /* Hook in ABI-specific overrides, if they have been registered. */ info.target_desc = tdesc; info.tdep_info = (void *) tdesc_data; @@ -3732,17 +3743,6 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) gdb_assert (gdbarch_num_regs (gdbarch) + gdbarch_num_pseudo_regs (gdbarch) == cur_reg); - /* Setup displaced stepping. */ - set_gdbarch_displaced_step_copy_insn (gdbarch, - simple_displaced_step_copy_insn); - set_gdbarch_displaced_step_fixup (gdbarch, ppc_displaced_step_fixup); - set_gdbarch_displaced_step_free_closure (gdbarch, - simple_displaced_step_free_closure); - set_gdbarch_displaced_step_location (gdbarch, - displaced_step_at_entry_point); - - set_gdbarch_max_insn_length (gdbarch, PPC_INSN_SIZE); - return gdbarch; } |