Re: [RFA] Assuming malloc exists in callfwmall.exp

Jim Blandy
2001-02-16T08:36:00Z

This is irrelevant. The GDB test suite exists to verify that GDB
behaves as documented. If a test checks for behavior which is not
guaranteed, the test is in error, and should simply be removed.

GDB does not, and should not, promise to make array literals work on
every target. GDB should promise to make them work when:
- GDB has the ability to invoke functions on this architecture,
- the inferior is running, and
- malloc is available and working.
If these conditions are not met, the inability to evaluate array
literals is not a failure.

The only reason to hedge on this question at all is that HP seemed to
think, a while back, that GDB should guarantee to make array literals
work on HP-UX. I don't know the reasoning. They may simply have been
misled.