From 2d426575611d4ac76dbe72e5c974fd18a4503740 Mon Sep 17 00:00:00 2001 From: Yufeng Zhang Date: Wed, 26 Jun 2013 10:52:12 +0000 Subject: [PATCH] [AArch64, ILP32] 5/6 Improve the debugging experience with the generated file 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 | 7 +++++++ bfd/Makefile.am | 6 ++++-- bfd/Makefile.in | 6 ++++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b6f3e2484dc..33e03fc5586 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2013-06-26 Yufeng Zhang + + * 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 * Makefile.am (BFD64_BACKENDS): Add elfxx-aarch64.c. diff --git a/bfd/Makefile.am b/bfd/Makefile.am index 93a97a0de35..6f0e4772eed 100644 --- a/bfd/Makefile.am +++ b/bfd/Makefile.am @@ -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 diff --git a/bfd/Makefile.in b/bfd/Makefile.in index d4ddb9e2a32..8a38a765450 100644 --- a/bfd/Makefile.in +++ b/bfd/Makefile.in @@ -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 -- 2.30.2