From: Petr Špaček Date: Wed, 2 Jan 2019 13:56:07 +0000 (+0100) Subject: gen-cdef: compatibility with GDB 8.2+ X-Git-Tag: v3.2.1~5^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee65b8a24d82b0bba321d96839d194d7771e4df1;p=thirdparty%2Fknot-resolver.git gen-cdef: compatibility with GDB 8.2+ --- diff --git a/scripts/gen-cdefs.sh b/scripts/gen-cdefs.sh index 7fef24114..0627fa40b 100755 --- a/scripts/gen-cdefs.sh +++ b/scripts/gen-cdefs.sh @@ -58,6 +58,8 @@ grep -v '^#\|^$' | while read -r ident; do fi # LuaJIT FFI blows up on "uint" type output="$(echo "$output" | sed 's/\buint\b/unsigned int/g')" + # GDB 8.2+ added source line prefix to output + output="$(echo "$output" | sed 's/^[0-9]\+:[[:space:]]*//g')" # abort on empty output if [ -z "$(echo "$output" | tr -d "\n;")" ]; then