This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[Patch, AArch64, ILP32] 5/5 Improve the debugging experience with the generated file
- From: Yufeng Zhang <Yufeng dot Zhang at arm dot com>
- To: binutils at sourceware dot org
- Cc: Marcus Shawcroft <Marcus dot Shawcroft at arm dot com>
- Date: Fri, 21 Jun 2013 19:08:06 +0100
- Subject: [Patch, AArch64, ILP32] 5/5 Improve the debugging experience with the generated file
- References: <51C4919B dot 1010407 at arm dot com>
Hi,
This patch adds a #line directive at the beginning of the generated file
(elf32-aarch64.c and elf64-aarch64.c) so that the generated debug
information points to the template file instead.
OK for the trunk?
Thanks,
Yufeng
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.
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index 19b3710..0e69d12 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