]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove hard-coded line number from templates.exp
authorKeith Seitz <keiths@redhat.com>
Fri, 23 Feb 2018 18:07:29 +0000 (10:07 -0800)
committerKeith Seitz <keiths@redhat.com>
Fri, 23 Feb 2018 18:07:29 +0000 (10:07 -0800)
commitf79a0082509f184f852a7976dc254ce5368279fc
tree941b610b11d139483837034ad93fbd723757fd73
parenta1c8ba9846b181bf46ada899b0d8a2c7737f8f39
Remove hard-coded line number from templates.exp

templates.exp has a hard-coded line number in it:

  gdb_test "b 770" \
      "Breakpoint .* at .*, line 770."

The problems with this are well-known, and this patch simply removes it.
I've also added the missing FSF copyright header to templates.cc.

testsuite/ChangeLog:

* gdb.cp/templates.cc (main): Add breakpoint marker comment.
* gdb.cp/templates.exp: Remove hard-coded line number.
gdb/testsuite/gdb.cp/templates.cc
gdb/testsuite/gdb.cp/templates.exp