aboutsummaryrefslogtreecommitdiff
path: root/gdb/tm-rs6000.h
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1992-04-03 20:25:57 +0000
committerPer Bothner <per@bothner.com>1992-04-03 20:25:57 +0000
commit556f3d9029f10733007a87814d7a46ea0c480be2 (patch)
treed49cfb64b711f5e0bcee96b33870230c5a074101 /gdb/tm-rs6000.h
parent677ff947296b08717519768157973e57ba31b3cb (diff)
downloadgdb-556f3d9029f10733007a87814d7a46ea0c480be2.zip
gdb-556f3d9029f10733007a87814d7a46ea0c480be2.tar.gz
gdb-556f3d9029f10733007a87814d7a46ea0c480be2.tar.bz2
* munch: Must pre-pend "_" to "initialize" for SYSV style nm.
* tm-rs6000.h, xcoffexec.c, xcoffread.c, xm-rs6000.h: Merge in more patches for rs6000 from Metin Ozisik. * utils.c: Fix typo in comment.
Diffstat (limited to 'gdb/tm-rs6000.h')
-rw-r--r--gdb/tm-rs6000.h24
1 files changed, 7 insertions, 17 deletions
diff --git a/gdb/tm-rs6000.h b/gdb/tm-rs6000.h
index b99deb3..8321288 100644
--- a/gdb/tm-rs6000.h
+++ b/gdb/tm-rs6000.h
@@ -136,30 +136,20 @@ extern int aix_loadInfoTextIndex;
} while (0)
-#if 0
- The following comment is not correct anymore. AIX has a trap signal
- that might be sent with a "stopped after a load" status. This might
- show up when the inferior is just started, or anytime inferior
- loads something else. It is incorrect to try to skip over it *only* in
- startup-time. It always has to be ignored and should not be mixed up
- with breakpoint traps. See the macro SIGTRAP_STOP_AFTER_LOAD and its
- usage in infrun.c.
-
-/* In aix, number of the trap signals we need to skip over once the
- inferior process starts running is different in version 3.1 and 3.2.
- This will be 2 for version 3.1x, 3 for version 3.2x. */
-
-#define START_INFERIOR_TRAPS_EXPECTED aix_starting_inferior_traps ()
-#endif /* 0 */
+/* Number of trap signals we need to skip over, once the inferior process
+ starts running. */
#define START_INFERIOR_TRAPS_EXPECTED 2
/* AIX might return a sigtrap, with a "stop after load" status. It should
be ignored by gdb, shouldn't be mixed up with breakpoint traps. */
+/* Another little glitch in AIX is signal 0. I have no idea why wait(2)
+ returns with this status word. It looks harmless. */
+
#define SIGTRAP_STOP_AFTER_LOAD(W) \
- if ( (W) == 0x57c ) { \
- if (breakpoints_inserted) { \
+ if ( (W) == 0x57c || (W) == 0x7f) { \
+ if ((W)==0x57c && breakpoints_inserted) { \
mark_breakpoints_out (); \
insert_breakpoints (); \
insert_step_breakpoint (); \