aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-10-10 02:40:19 +0000
committerAndrew Cagney <cagney@redhat.com>2003-10-10 02:40:19 +0000
commitef5200c1f05fb9ef8a1e2959d89403e433d9f637 (patch)
treefb1745cc96a42eaf51e30e6f2f9cec1e9550be3d /gdb/rs6000-tdep.c
parent71952f4c7e0b3122cb056587840d484cb5a7658a (diff)
downloadgdb-ef5200c1f05fb9ef8a1e2959d89403e433d9f637.zip
gdb-ef5200c1f05fb9ef8a1e2959d89403e433d9f637.tar.gz
gdb-ef5200c1f05fb9ef8a1e2959d89403e433d9f637.tar.bz2
2003-10-09 Andrew Cagney <cagney@redhat.com>
Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>: * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro. (SOFTWARE_SINGLE_STEP_P): Ditto. * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto. * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto. (SOFTWARE_SINGLE_STEP_P): Ditto. * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set software_single_step to rs6000_software_single_step.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r--gdb/rs6000-tdep.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index fe51340..bc0cff9 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -3008,6 +3008,16 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
/* Hook in ABI-specific overrides, if they have been registered. */
gdbarch_init_osabi (info, gdbarch);
+ if (from_xcoff_exec)
+ {
+ /* NOTE: jimix/2003-06-09: This test should really check for
+ GDB_OSABI_AIX when that is defined and becomes
+ available. (Actually, once things are properly split apart,
+ the test goes away.) */
+ /* RS6000/AIX does not support PT_STEP. Has to be simulated. */
+ set_gdbarch_software_single_step (gdbarch, rs6000_software_single_step);
+ }
+
return gdbarch;
}