]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
Use MACRO_AT_func in entry-values.exp
authorYao Qi <yao@codesourcery.com>
Sat, 22 Nov 2014 13:28:31 +0000 (21:28 +0800)
committerYao Qi <yao@codesourcery.com>
Sat, 22 Nov 2014 13:28:31 +0000 (21:28 +0800)
commit84429e27c826c74b99791b8f1efe8dce03cfa6ca
treef2befb0d9dc9af35ef8e49366eb78a8bf2bd2c8a
parent267418593cfb3986a924024a28e3283626399301
Use MACRO_AT_func in entry-values.exp

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-22  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.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/entry-values.c
gdb/testsuite/gdb.trace/entry-values.exp