This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/3] Remove hard-coded line number from templates.exp
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Keith Seitz <keiths at redhat dot com>
- Cc: GDB Patches <gdb-patches at sourceware dot org>
- Date: Mon, 5 Feb 2018 17:03:30 +0000
- Subject: Re: [PATCH 2/3] Remove hard-coded line number from templates.exp
- Authentication-results: sourceware.org; auth=none
- References: <20180202183642.4288-1-keiths@redhat.com> <20180202183642.4288-2-keiths@redhat.com>
On Fri, Feb 2, 2018 at 6:36 PM, Keith Seitz <keiths@redhat.com> wrote:
> 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.
Patch is good to me.
--
Yao (齐尧)