This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Use MACRO_AT_func in entry-values.exp
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Sat, 22 Nov 2014 21:29:57 +0800
- Subject: Re: [PATCH] Use MACRO_AT_func in entry-values.exp
- Authentication-results: sourceware.org; auth=none
- References: <1416059129-32024-1-git-send-email-yao at codesourcery dot com>
Yao Qi <yao@codesourcery.com> writes:
> MACRO_AT_func can be used in gdb.trace/entry-values.exp to correctly
> get function's address in generated debug info. As a result, the test
> is more friendly to clang. Currently, there are some fails in
> entry-values.exp when the test is compiled by clang. With this patch
> applied, all fails go away.
>
> gdb/testsuite:
>
> 2014-11-15 Yao Qi <yao@codesourcery.com>
>
> * gdb.trace/entry-values.c: Remove asms.
> (foo): Add foo_label.
> (bar): Add bar_label.
> * gdb.trace/entry-values.exp: Remove code computing foo's
> length and bar's length.
> (Dwarf::assemble): Invoke function_range for bar and use
> MACRO_AT_func for foo.
I've pushed it in.
--
Yao (éå)