[AArch64, ILP32] 5/6 Improve the debugging experience with the generated file
authorYufeng Zhang <yufeng.zhang@arm.com>
Wed, 26 Jun 2013 10:52:12 +0000 (10:52 +0000)
committerYufeng Zhang <yufeng.zhang@arm.com>
Wed, 26 Jun 2013 10:52:12 +0000 (10:52 +0000)
bfd/

* Makefile.am (elf32-aarch64.c): Add a #line cpp directive at the
beginning of the generated file.
(elf64-aarch64.c): Likewise.
* Makefile.in: Re-generated.

bfd/ChangeLog
bfd/Makefile.am
bfd/Makefile.in

index b6f3e2484dcb64b35424b8a3c685c0da2098708e..33e03fc5586619933d34391929a3d16e48e3a78f 100644 (file)
@@ -1,3 +1,10 @@
+2013-06-26  Yufeng Zhang  <yufeng.zhang@arm.com>
+
+       * Makefile.am (elf32-aarch64.c): Add a #line cpp directive at the
+       beginning of the generated file.
+       (elf64-aarch64.c): Likewise.
+       * Makefile.in: Re-generated.
+
 2013-06-26  Yufeng Zhang  <yufeng.zhang@arm.com>
 
        * Makefile.am (BFD64_BACKENDS): Add elfxx-aarch64.c.
index 93a97a0de357cb2749e683b721ebf50c34cb1cfb..6f0e4772eed8fea900168e2297abc5762e973de9 100644 (file)
@@ -917,12 +917,14 @@ elf64-target.h : elfxx-target.h
 
 elf32-aarch64.c : elfnn-aarch64.c
        rm -f elf32-aarch64.c
-       sed -e s/NN/32/g < $(srcdir)/elfnn-aarch64.c > elf32-aarch64.new
+       echo "#line 1 \"$(srcdir)/elfnn-aarch64.c\"" > elf32-aarch64.new
+       sed -e s/NN/32/g < $(srcdir)/elfnn-aarch64.c >> elf32-aarch64.new
        mv -f elf32-aarch64.new elf32-aarch64.c
 
 elf64-aarch64.c : elfnn-aarch64.c
        rm -f elf64-aarch64.c
-       sed -e s/NN/64/g < $(srcdir)/elfnn-aarch64.c > elf64-aarch64.new
+       echo "#line 1 \"$(srcdir)/elfnn-aarch64.c\"" > elf64-aarch64.new
+       sed -e s/NN/64/g < $(srcdir)/elfnn-aarch64.c >> elf64-aarch64.new
        mv -f elf64-aarch64.new elf64-aarch64.c
 
 elf32-ia64.c : elfnn-ia64.c
index d4ddb9e2a32460b82b9ec6df0c887575af1c2188..8a38a7654505ea2d755eaa7d66e2b2e56095aba0 100644 (file)
@@ -1996,12 +1996,14 @@ elf64-target.h : elfxx-target.h
 
 elf32-aarch64.c : elfnn-aarch64.c
        rm -f elf32-aarch64.c
-       sed -e s/NN/32/g < $(srcdir)/elfnn-aarch64.c > elf32-aarch64.new
+       echo "#line 1 \"$(srcdir)/elfnn-aarch64.c\"" > elf32-aarch64.new
+       sed -e s/NN/32/g < $(srcdir)/elfnn-aarch64.c >> elf32-aarch64.new
        mv -f elf32-aarch64.new elf32-aarch64.c
 
 elf64-aarch64.c : elfnn-aarch64.c
        rm -f elf64-aarch64.c
-       sed -e s/NN/64/g < $(srcdir)/elfnn-aarch64.c > elf64-aarch64.new
+       echo "#line 1 \"$(srcdir)/elfnn-aarch64.c\"" > elf64-aarch64.new
+       sed -e s/NN/64/g < $(srcdir)/elfnn-aarch64.c >> elf64-aarch64.new
        mv -f elf64-aarch64.new elf64-aarch64.c
 
 elf32-ia64.c : elfnn-ia64.c