[PATCH 1/2] maint: adapt to the future versions of readelf

Gleb Fotengauer-Malinovskiy glebfm at altlinux.org
Fri Dec 11 18:40:07 UTC 2020


* maint/ioctls_sym.awk: Update DW_AT_type regexp.
---
 maint/ioctls_sym.awk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/maint/ioctls_sym.awk b/maint/ioctls_sym.awk
index 504e644be..0bae305af 100644
--- a/maint/ioctls_sym.awk
+++ b/maint/ioctls_sym.awk
@@ -47,7 +47,7 @@ function dir2str(dir, \
 	array[idx]["name"] = temparray[1]
 }
 /^DW_AT_type/ {
-	match($0, /:[[:space:]]+<(0x[[:xdigit:]]*)>$/, temparray)
+	match($0, /:[[:space:]]+<(0x[[:xdigit:]]*)>(, .*)?$/, temparray)
 	array[idx]["type"] = temparray[1]
 }
 /^DW_AT_upper_bound/ {

-- 
glebfm


More information about the Strace-devel mailing list