gdb/testsuite: Ensure test links in malloc and free
authorAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 10 Apr 2018 19:18:53 +0000 (20:18 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 6 Jul 2018 13:31:37 +0000 (14:31 +0100)
commite0e5e971ae89da1ded13013bb7378dc5f09363af
treedbe01bb92318d1a449c1340f6c957470f0acb815
parentd20e98ab59ea49d3f90bf05ac7b16c0d3588ce41
gdb/testsuite: Ensure test links in malloc and free

The test associated with the source file
gdb.base/share-env-with-gdbserver.c relies on calling malloc and free
within the inferior from GDB.  However, as the test source itself
makes no use of these functions, there's no requirement that they be
linked into the test executable.

This commit adds a dummy call to malloc and free to ensure they are
linked into the test executable.

gdb/testsuite/ChangeLog:

* gdb.base/share-env-with-gdbserver.c (main): Add call to
malloc/free.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/share-env-with-gdbserver.c
This page took 0.026115 seconds and 4 git commands to generate.