[PATCH] Use multi-arch'd START_INFERIOR_TRAPS_EXPECTED on Alpha target
Jason R Thorpe
thorpej@wasabisystems.com
Wed Apr 24 18:04:00 GMT 2002
On Wed, Apr 24, 2002 at 08:06:31PM -0400, Andrew Cagney wrote:
> #define STARTUP_WITH_SHELL 1
> - #define START_INFERIOR_TRAPS_EXPECTED (STARTUP_WITH_SHELL + 1)
>
> Does STARTUP_WITH_SHELL need to be multi-arched?
>
> I'm wondering if it would be better to make it a variable (``set
> startup-with-shell <boolean>''). Looking at its uses it appears that
> fork-child.c:startup_inferior() would still work (if it did previously).
Hm. Actually, it occurs to me that this is more like what we want, but
not quite. What we really want is:
STARTUP_WITH_SHELL_ADDS_TRAPS
So, then we get:
#define START_INFERIOR_TRAPS_EXPECTED \
(startup_with_shell ? (STARTUP_WITH_SHELL_ADDS_TRAPS + 1) : 1)
I.e. the issue is really how many extra traps the shell adds.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>
More information about the Gdb-patches
mailing list