From 79a7ecebe526fe8000353c39e849680297e14af2 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 21 Feb 2023 14:30:16 -0500 Subject: [PATCH] MT#55283 correct line numbering for shared files Fixes the off-by-one line number error in gdb et al. Change-Id: I7f58a429c168a6a00cbdcbf42add2ef3db8c9447 --- lib/common.Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/common.Makefile b/lib/common.Makefile index 70d7eca7a..70335e94d 100644 --- a/lib/common.Makefile +++ b/lib/common.Makefile @@ -21,10 +21,12 @@ $(OBJS): Makefile ../include/* ../lib/*.h ../kernel-module/*.h $(LIBSRCS): $(patsubst %,../lib/%,$(LIBSRCS)) ( echo '/******** GENERATED FILE ********/' && \ + echo '#line 1' && \ cat ../lib/"$@" ) > "$@" $(DAEMONSRCS) $(HASHSRCS): $(patsubst %,../daemon/%,$(DAEMONSRCS)) $(patsubst %,../daemon/%,$(HASHSRCS)) ( echo '/******** GENERATED FILE ********/' && \ + echo '#line 1' && \ cat ../daemon/"$@" ) > "$@" %.8: %.pod