From 5d6d8fe6db86db710279a14ef6c16b9096332816 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Tue, 26 Apr 2022 15:57:06 -0400 Subject: [PATCH] dejagnu: add gdb compiler_info k/v extraction --- bin/i-dejagnu-parser | 2 ++ tests/run-gdb-keiths.sh | 1 + 2 files changed, 3 insertions(+) diff --git a/bin/i-dejagnu-parser b/bin/i-dejagnu-parser index 833f1f5..ba9fb3e 100755 --- a/bin/i-dejagnu-parser +++ b/bin/i-dejagnu-parser @@ -74,6 +74,8 @@ def parse_dejagnu_log_sum(db, commit, trid, sumfile, logfile): "gcc-version":"^Gcc: (.*)$", "distro":"^Distro: (.*)$", "selinux":"^SElinux: (.*)$"}) + elif tool == "gdb": + logfile_kv.update({"compiler_info":"^get_compiler_info: (.*)$"}) # general dejagnu patterns sumfile_kv.update({"architecture":"^Native configuration is ([^-]*)-.*$", diff --git a/tests/run-gdb-keiths.sh b/tests/run-gdb-keiths.sh index e9c5976..b569a57 100755 --- a/tests/run-gdb-keiths.sh +++ b/tests/run-gdb-keiths.sh @@ -28,6 +28,7 @@ sqlite3 $db 'select key,value from testrun_kv where key not like "authored%" ord cat <<'EOF' > keywords-expected.txt architecture|x86_64 +compiler_info|gcc-10-3-1 gdb_version|/home/fedora33/work/gdb/fsf/virgin/linux/gdb/gdb version 13.0.50.20220412-git -nw -nx -iex "set height 0" -iex "set width 0" -data-directory /home/fedora33/work/gdb/fsf/virgin/linux/gdb/testsuite/../data-directory -iex "set auto-connect-native-target off" -iex "set sysroot" target_board|native-gdbserver/-m32 EOF -- 2.43.5