]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove some hard-coded stuff in tests
authorYao Qi <yao.qi@linaro.org>
Thu, 26 Mar 2015 08:29:48 +0000 (08:29 +0000)
committerYao Qi <yao.qi@linaro.org>
Thu, 26 Mar 2015 08:29:48 +0000 (08:29 +0000)
commit2898689ba3a36451779ec526e14783c2aba9316b
tree843525348d0363f0767371ac083e013f53cbe47e
parent8518049884947da598e2f585bf9a4589df7096e9
Remove some hard-coded stuff in tests

There are some hard-coded stuff in .s files, such as .int 0 and
address offset, which isn't portable.  This patch is to replace
".int 0" with nop and address offset with labels.

gdb/testsuite:

2015-03-26  Yao Qi  <yao.qi@linaro.org>

* gdb.linespec/break-asm-file0.s (func2): Use nop instead of
.int 0.
(func): Likewise.  Add .Lfunc_1 label.
Use .Lfunc_1 label.
* gdb.linespec/break-asm-file1.s (func3): Use nop instead of
.int 0.
(func): Likewise.
Use .Lfunc_1 label.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.linespec/break-asm-file0.s
gdb/testsuite/gdb.linespec/break-asm-file1.s