Add test for following fork on position-independent executables
authorSimon Marchi <simon.marchi@ericsson.com>
Wed, 11 Apr 2018 18:55:39 +0000 (14:55 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Wed, 11 Apr 2018 18:55:40 +0000 (14:55 -0400)
commit6295b6da16f73d5113d24424d1897edbce42bc6a
tree12925dbd59e75df8e0dc761eab7a96c6b30f56ae
parent50146e7022cedafe615bfc9884358d291a00689f
Add test for following fork on position-independent executables

Commit

  b2e586e ("Defer breakpoint reset when cloning progspace for fork
  child")

fixed following fork childs when the executable is position-independent.
This patch adds a little test for it.

gdb/testsuite/ChangeLog:

* gdb.base/pie-fork.c: New file.
* gdb.base/pie-fork.exp: New file.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/pie-fork.c [new file with mode: 0644]
gdb/testsuite/gdb.base/pie-fork.exp [new file with mode: 0644]