Make sure malloc is linked into gdb.cp/oranking.cc.
authorKeith Seitz <keiths@redhat.com>
Wed, 3 May 2017 19:41:09 +0000 (12:41 -0700)
committerKeith Seitz <keiths@redhat.com>
Wed, 3 May 2017 19:41:09 +0000 (12:41 -0700)
commit90cef2edd256c48d2ff9a03d4a6c1bcb575db07c
treee1a9e5a61a87f832ea75c34e53c681ce4fd6b4b2
parentb22908217d8593185af3f76fab6f0f01457b0600
Make sure malloc is linked into gdb.cp/oranking.cc.

On some platforms, e.g., arm-eabi-none, we need to make certain that
malloc is linked into the program because the test suite uses function
calls requiring malloc:

(gdb) p foo101("abc")
evaluation of this expression requires the program to have a function "malloc".

gdb/testsuite/ChangeLog

* gdb.cp/oranking.cc (dummy): New function to grab malloc.
(main): Call it.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/oranking.cc