This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Assuming malloc exists in callfwmall.exp
- To: Michael Elizabeth Chastain <chastain at cygnus dot com>
- Subject: Re: [RFA] Assuming malloc exists in callfwmall.exp
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Date: 16 Feb 2001 11:36:33 -0500
- Cc: ac131313 at cygnus dot com, fnasser at redhat dot com, gdb-patches at sources dot redhat dot com, keiths at cygnus dot com
- References: <200102160305.TAA28093@bosch.cygnus.com>
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.