Add testcase for stub-method reading in stabs.
authorDoug Evans <xdje42@gmail.com>
Mon, 6 Apr 2015 15:59:58 +0000 (08:59 -0700)
committerDoug Evans <xdje42@gmail.com>
Mon, 6 Apr 2015 15:59:58 +0000 (08:59 -0700)
commit85317fbbca85af8786ba3ce0523a1b85b4457f09
tree504673d326dd00e33a9d776195d49bf9e88ee6d9
parent01b622d4c7536f20622bc0e23ff78b7fe37bc1e3
Add testcase for stub-method reading in stabs.

This patch is based on the testcase provided here:
https://sourceware.org/ml/gdb-patches/2015-02/msg00181.html

I've verified that it catches the internal error discovered here:
https://sourceware.org/ml/gdb-patches/2015-02/msg00139.html

gdb/testsuite/ChangeLog:

* lib/gdb.exp (clean_restart): Return result of gdb_load.
* gdb.pascal/stub-method.exp: New file.
* gdb.pascal/stub-method.pas: New file.
gdb/testsuite/gdb.pascal/stub-method.exp [new file with mode: 0644]
gdb/testsuite/gdb.pascal/stub-method.pas [new file with mode: 0644]
gdb/testsuite/lib/gdb.exp